* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html,
body {
    height: auto;
    /* Allow body to grow as content expands */
    min-height: 100vh;
    /* Ensures the body covers full viewport */
    overflow-y: auto;
    /* Enables vertical scrolling */
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background: linear-gradient(45deg, #f3f4f6, #ffffff);
    padding: 20px;
}

.wave {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 100%;
    z-index: -1;
    opacity: 0.7;
    /* background-color: var(--primary); */
}

.container {
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    /* Stack content vertically */
    min-height: 100vh;
    /* Ensures the container grows if content expands */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 7rem;
    padding: 0 2rem;
}

.img {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.img img {
    width: 500px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.login-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: center;

}

.br_name {
    color: rgb(147, 201, 252);
}

form {
    width: 360px;
    /* padding: 1rem; */
    /* background: rgb(34 147 106 / 45%); */
    /* background: var(--primary); */

    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(4px);
    animation: formAppear 0.6s ease-out;

    margin-top: 50px;
    margin-bottom: 10px;
}

form::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: hsl(167, 72%, 56%);
    /* background-color: var(--primary); */
    opacity: 0.5;
    z-index: -1;
    border-radius: 20px;
}


input::placeholder {
    color: rgb(148, 147, 147);
    /* You can use any valid color */
    opacity: 1;
    /* Optional: make it fully visible */
}

@keyframes formAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-content img {
    height: auto;
    width: 110px;
    margin-top: -45px;
    animation: pulse 2s infinite;
    border: 2px solid #266a53;
    border-radius: 50%;
    padding: 5px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.login-content h2 {
    margin: 10px 0;
    color: #fff;
    text-transform: capitalize;
    font-size: 1.5rem;
    font-weight: 500;
}

.input-div {
    position: relative;
    display: grid;
    grid-template-columns: 7% 93%;
    margin: 0px 0;
    padding: 5px 0;
    /* border-bottom: 2px solid #d9d9d9; */
    border-bottom: 2px solid #0aa57e;
    transition: all 0.3s ease;
}

.input-div:hover {
    border-bottom: 2px solid #ffffff;
}

.input-div.focus {
    border-bottom: 2px solid #046958;
    animation: inputFocus 0.3s ease-out;
}

@keyframes inputFocus {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.i {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #d9d9d9;
    transition: 0.3s;
}

.input-div.focus .i {
    color: #4481eb;
}

.input-div>div {
    position: relative;
    height: 40px;
}

.input-div>div>input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: none;
    padding: 0.2rem 0.7rem;
    font-size: 1rem;
    color: #065f49;
    font-family: 'Poppins', sans-serif;
}

/* input:focus {
    border: 2px solid #e36a02;
    box-shadow: 0 0 8px rgba(227, 106, 2, 0.5);
} */
.btn {
    display: block;
    margin-left: 4rem;
    width: 60%;
    height: 3rem;
    padding: 2px;
    outline: none;
    border: none;
    border-radius: 10px;
    /* background-image: linear-gradient(to right, #3260b1, #15c3ff, #154db1); */
    background-image: linear-gradient(to right, #0a7e61, #14756dcc, #0c7264cc, #075264cc);
    background-size: 200%;
    font-size: 1rem;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    /* margin: 1rem 0 0 0;  */
    cursor: pointer;
    transition: 0.5s;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-position: right;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(68, 129, 235, 0.4);
}

.btn::after {

    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn:active::after {
    width: 200px;
    height: 200px;
    opacity: 0;
}

a {

    display: block;
    text-align: right;
    text-decoration: none;
    color: #f6f6f6;
    font-size: 0.9rem;
    transition: 0.3s;
    margin-top: 15px;
    margin-bottom: 10px;
}

a:hover {
    color: #1a4da5;
    transform: translateX(-5px);
}

@media screen and (max-width: 1050px) {
    .container {
        grid-gap: 5rem;
    }
}

@media screen and (max-width: 1000px) {
    form {
        width: 290px;
    }

    .login-content h2 {
        font-size: 2.4rem;
        margin: 8px 0;
    }

    .img img {
        width: 400px;
    }
}

@media screen and (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
    }

    .img {
        display: none;
    }

    .wave {
        display: none;
    }

    .login-content {
        justify-content: center;
    }
}


.icon {
    margin-bottom: 20px;
}

.form-container {
    /* background-color: #fff; */
    border-radius: 10px;
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
    padding: 26px 30px;

    position: relative;
}

.tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    border-bottom: 1px solid#e36a02;
}

.tabs div {
    color: #fff;
    flex: 1;
    font-size: 13px;
    padding: 10px;
    cursor: pointer;
}

.tabs .active {
    background-color: #e36a02;
    border-radius: 5px 5px 0 0;
    border-bottom: 3px solid #e36a02;
    transform: translateY(-5px);
    /* Slight upward movement */
    opacity: 0;
    animation: slideFadeIn 0.4s ease-out forwards;
}

@keyframes slideFadeIn {
    from {
        transform: translateY(10px);
        /* Starts lower */
        opacity: 0;
        /* Fully transparent */
    }

    to {
        transform: translateY(0);
        /* Ends at original position */
        opacity: 1;
        /* Fully visible */
    }
}

.input-group {
    margin-bottom: 15px;
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.input-group .invalid-feedback {
    display: none;
    color: #d8000c;
    font-size: 12px;
    margin-top: 5px;
}

.invalid-feedback {
    top: 0;
    opacity: 0.5;
    color: black;
}


.form-content {
    display: none;
}

.form-content.active {
    display: block;
}

/* mpin */
.mpin-inputs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.mpin-inputs input {
    width: 20%;
    padding: 10px;
    text-align: center;
    font-size: 18px;
    border: 2px solid #ccc;
    border-radius: 5px;
    color: #555;
    font-family: 'Poppins', sans-serif;
}

.mpin-inputs input:hover {
    border: 2px solid #089e85;
}

@keyframes inputFocus {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.mpin-error {
    display: none;
    color: #d8000c;
    font-size: 12px;
    margin-bottom: 15px;
}


/* Existing CSS remains unchanged */
@media screen and (max-width: 600px) {
    .login-content {
        width: 100%;
        padding: 2rem;
    }

    form {
        width: 100%;
        padding: 1.5rem;
    }

    .input-div {
        margin: 20px 0;
    }

    .btn {
        height: 45px;
        font-size: 1rem;
    }

    .tabs div {
        font-size: 12px;
        padding: 8px;
    }
}

/* Additional Responsive Enhancements */
@media screen and (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        grid-gap: 3rem;
        padding: 1rem;
    }

    .img {
        display: none;
    }

    .login-content {
        justify-content: center;
        width: 100%;
    }

    form {
        width: 100%;
        max-width: 320px;
        padding: 1rem;
    }

    .login-content h2 {
        font-size: 1.4rem;
    }

    .input-div {
        grid-template-columns: 10% 90%;
    }

    .input-div>div>input {
        font-size: 0.9rem;
    }

    .btn {
        height: 45px;
        font-size: 1rem;
    }

    .tabs div {
        padding: 8px;
        font-size: 12px;
    }

    .mpin-inputs input {
        width: 22%;
        font-size: 16px;
        padding: 8px;
    }
}

@media screen and (max-width: 480px) {
    .login-content {
        padding: 0;
    }

    form {
        width: 100%;
        max-width: 280px;
        padding: 0.8rem;
    }

    .login-content h2 {
        font-size: 1.2rem;
    }

    .btn {
        height: 40px;
        font-size: 0.9rem;
    }

    .mpin-inputs input {
        width: 20%;
        padding: 6px;
        font-size: 14px;
    }

    a {
        font-size: 0.8rem;
    }
}