body {
    background-color: #fff;
    overflow: hidden;
}

.login_bg {
    height: 100vh;
    overflow-x: hidden;
    background-position: center center;
    background-size: cover;
    position: relative;
    background-repeat: no-repeat;
}

.login_bg::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.35);
}

#auth .card {
    border-radius: 0;
}

#auth #auth-box {
    padding: 50px 40px;
    height: auto;
    width: 31%;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: cardSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: right center;
}

@keyframes cardSlideUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#auth #auth-box .auth-logo {
    margin-bottom: 28px;
    position: relative;
    top: 0;
    text-align: center;
    animation: fadeInUp 0.6s 0.2s both;
}

#auth #auth-box .auth-logo img {
    width: 220px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

#auth #auth-box .auth-logo img:hover {
    transform: scale(1.02);
}

#auth .login_heading {
    margin-bottom: 0;
    text-align: center;
    animation: fadeInUp 0.6s 0.3s both;
}

#auth .login_heading h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

#auth .login_heading p {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 400;
}

#auth .form-group {
    animation: fadeInUp 0.6s 0.4s both;
}

#auth .form-group:nth-of-type(2) {
    animation-delay: 0.5s;
}

.login-border {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    height: 54px;
    padding-left: 16px;
    padding-right: 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.login-border:focus {
    border-color: #00B2CA;
    box-shadow: 0 0 0 4px rgba(0, 178, 202, 0.1);
    background-color: #ffffff;
}

#auth .form-input {
    background-color: #ffffff;
}

#auth .form-floating > label {
    padding-left: 16px;
    padding-top: 14px;
    color: #8c96a3;
    font-weight: 400;
}

#auth .form-floating > .form-control:focus ~ label,
#auth .form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.85;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    color: #00B2CA;
}

#auth .form-control-icon.icon-right {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.15rem;
    color: #adb5bd;
    z-index: 5;
    transition: color 0.2s ease;
}

#auth .form-control-icon.icon-right:hover {
    color: #00B2CA;
}

#auth .login_btn {
    height: 52px;
    display: inline-block;
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
    border: none;
    background: linear-gradient(135deg, #00B2CA 0%, #0095a8 100%);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s 0.6s both;
}

#auth .login_btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

#auth .login_btn:hover::before {
    left: 100%;
}

#auth .login_btn:hover {
    background: linear-gradient(135deg, #0095a8 0%, #007a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 178, 202, 0.35);
}

#auth .login_btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 178, 202, 0.2);
}

#auth .login_btn:disabled {
    opacity: 0.8;
    transform: none;
}


.mtop-120 {
    margin-top: 120px;
}

.login-box {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 6%;
}


@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


@media screen and (min-width: 320px) and (max-width: 480px) {
    #auth #auth-box {
        width: 90%;
        margin: 18px;
        padding: 35px 24px;
        border-radius: 16px;
    }

    .login-box {
        right: 0;
    }
}

@media screen and (min-width: 481px) and (max-width: 767px) {
    .login-box {
        right: 0;
    }

    #auth-box {
        margin: 60px;
        width: 80% !important;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    #auth #auth-box {
        width: 40%;
        padding: 40px 30px;
    }
}

@media screen and (min-width: 1025px) and (max-width: 1400px) {
    #auth #auth-box {
        width: 34%;
    }
}
