@import url('style.css');
@import url('https://fonts.googleapis.com/css2?family=Battambang:wght@100;300;400;700;900&family=Kantumruy+Pro:ital,wght@0,100..700;1,100..700&display=swap');

 body {
    font-family: "Battambang", system-ui;
    background-image: url("../images/auth/background_auth.jpg");
    object-fit: cover;
}

.auth-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    min-height: 550px;
}

.auth-card .welcome-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
    border-radius: 30px 0 0 30px;
}

.auth-card .welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 120%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: rotate(15deg);
}

.auth-card .welcome-section .welcome-content {
    text-align: center;
    z-index: 2;
    position: relative;
    padding: 2rem;
}



.auth-card .welcome-section .welcome-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.auth-card .welcome-section .welcome-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.register-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.5s ease;
    cursor: pointer;
}

.register-btn:hover {
    background: white;
    color: #147242;
    font-weight: bold;
}

.auth-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    background: white;
}

.auth-form {
    max-width: 350px;
    width: 100%;
    margin: 0 auto;
}

.auth-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    text-align: left;
}

.form-group {
    margin-bottom: 1.2rem;
    position: relative;
}

.form-control {
    border: none;
    border-radius: 12px;
    padding: 1rem 3rem 1rem 1rem;
    background: #f5f5f5;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus {
    background: white;
    border-color: #3cb043;
    box-shadow:
        0 0 0 0.2rem rgba(20, 114, 66, 0.25),
        0 6px 16px rgba(20, 114, 66, 0.4);
    outline: none;
}

.auth-des,
.form-check-label,
.form-control::placeholder {
    color: #999;
}

.input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 3;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
}

.input-with-icon {
    padding-left: 40px;
}

.forgot-password {
    color: #999;
    text-decoration: none;
    display: block;
    text-align: right;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--secondary);
}

.auth-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 12px;
    color: white;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    cursor: pointer;
    z-index: 1;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.6) 50%,
            transparent 100%);
    transform: skewX(-20deg);
    opacity: 0;
    z-index: 0;
}

.auth-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(20, 114, 66, 0.4);
    color: white;
}

.auth-btn:hover::before {
    opacity: 1;
    animation: shimmer 1.2s forwards;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.social-login {
    text-align: center;
    margin-top: 1.5rem;
}

.social-text {
    color: #999;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.social-login .social-text::before {
    content: '';
    width: 110px;
    left: 0;
    top: 12px;
    height: 1px;
    position: absolute;
    background-color: #999;
}

.social-login .social-text::after {
    content: '';
    width: 110px;
    right: 0;
    top: 12px;
    height: 1px;
    position: absolute;
    background-color: #999;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #666;
    font-size: 1.1rem;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #147242;
    border-color: #147242;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .auth-card {
        flex-direction: column;
        min-height: auto;
        max-width: 400px;
    }

    .welcome-section {
        border-radius: 30px 30px 0 0;
        min-height: 200px;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .welcome-content {
        padding: 2rem 1rem;
    }

    .auth-section {
        padding: 2rem 1.5rem;
    }

    .auth-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .welcome-section .renew-img img {
        width: 300px;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .auth-card {
        border-radius: 20px;
    }

    .welcome-section {
        border-radius: 20px 20px 0 0;
    }

    .social-buttons {
        gap: 0.6rem;
    }

    .social-btn {
        width: 40px;
        height: 40px;
    }

    .auth-section .otp-container .otp-input {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .auth-section .otp-container {
        gap: 10px;
    }
}


.form-check-input:checked {
    background-color: #147242;
    border-color: #147242;
}

.auth-logo {
    display: flex;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: auto;
    padding: 5px;
    border-radius: 50%;
    background-color: white;
}

/* Forgot Password */
.auth-card .welcome-section .forgot-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-card .welcome-section .icon-back {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    z-index: 2;
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}

.auth-card .welcome-section .icon-back::before {
    content: "\f053";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    font-size: 20px;
    color: #147242;
}

.auth-card .welcome-section .icon-back:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(20, 114, 66, 0.4);
}

.auth-section .auth-form .logo-form img {
    width: 90px;
    height: 90px;
}

/* OTP */
.auth-section .otp-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.auth-section .otp-container .otp-input {
    width: 60px;
    height: 60px;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    background: #FAFAFA;
    transition: all 0.3s ease;
    outline: none;
}

.auth-section .otp-container .otp-input:focus {
    border-color: #4CAF50;
    background: white;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    transform: scale(1.05);
}

.auth-section .otp-container .otp-input.filled {
    border-color: #4CAF50;
    background: #F8FFF8;
}


.auth-section .resend-container {
    color: #666;
    font-size: 14px;
}

.auth-section .resend-container .resend-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.auth-section .resend-container .resend-link:hover {
    color: #45a049;
    text-decoration: underline;
}

.auth-section .resend-container .timer {
    color: #FF6B6B;
    font-weight: 600;
}

/* Renew Password */
.welcome-section .renew-img img {
    width: 500px;
    object-fit: cover;
}

