/* ================= LOGIN PAGE STYLES ================= */

/* LOGIN SECTION */
.login-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background-image: url("./images/hero-section-banner.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* DARK OVERLAY */
.login-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

/* CONTAINER */
.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* LOGO SECTION */
.login-logo {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.login-logo img {
    width: 70px;
    height: 70px;
    background: #ffffff;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* LOGIN CARD */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 35px 30px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    border: 4px solid #491b31;
}

/* TITLE */
.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

/* FORM GROUP */
.form-group {
    /* margin-bottom: 20px; */
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

/* INPUT WRAPPER */
.input-wrapper {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: #ae7006;
}

.country-code {
    padding: 12px 15px;
    background: #e8e8e8;
    font-weight: 600;
    color: #333;
    border-right: 2px solid #e0e0e0;
    font-size: 15px;
}

/* FORM INPUT */
.form-input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-size: 15px;
    background: transparent;
    outline: none;
    font-family: "Roboto", sans-serif;
}

.form-input::placeholder {
    color: #999;
}

.form-input:disabled {
    background: #f0f0f0;
    color: #666;
}

/* OTP INPUT WRAPPER */
.otp-input-wrapper {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.otp-input-wrapper:focus-within {
    border-color: #ae7006;
}

.otp-input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-size: 18px;
    letter-spacing: 8px;
    background: transparent;
    outline: none;
    font-family: "Roboto", sans-serif;
}

.otp-input::placeholder {
    letter-spacing: normal;
    font-size: 15px;
}

/* TOGGLE OTP BUTTON */
.toggle-otp-btn {
    background: transparent;
    border: none;
    padding: 12px 15px;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    transition: color 0.3s ease;
}

.toggle-otp-btn:hover {
    color: #ae7006;
}

/* ERROR MESSAGE */
.error-message {
    display: block;
    font-size: 12px;
    color: #e5322d;
    margin-top: 6px;
    min-height: 18px;
}

/* INPUT ERROR STATE */
.input-error {
    border-color: #e5322d !important;
}

.input-wrapper:has(.input-error),
.otp-input-wrapper:has(.input-error) {
    border-color: #e5322d;
}

/* PRIMARY BUTTON */
.btn-primary-custom {
    width: 100%;
    padding: 14px 20px;
    background: #ae7006;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Roboto", sans-serif;
    margin-top: 10px;
}

.btn-primary-custom:hover {
    background: #8f5c05;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(174, 112, 6, 0.4);
}

.btn-primary-custom:active {
    transform: translateY(0);
}

/* OTP SECTION */
.otp-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px dashed #ddd;
}

/* RESEND SECTION */
.resend-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.timer-text {
    font-size: 14px;
    color: #666;
}

.timer-text #countdown {
    font-weight: 700;
    color: #e5322d;
    font-size: 16px;
}

/* RESEND BUTTON */
.resend-btn {
    background: transparent;
    border: 2px solid #ae7006;
    color: #ae7006;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Roboto", sans-serif;
}

.resend-btn:hover {
    background: #ae7006;
    color: #fff;
}

.resend-btn i {
    margin-right: 5px;
}

/* BACK HOME LINK */
.back-home-link {
    display: block;
    text-align: center;
    margin-top: 25px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.back-home-link:hover {
    color: #ae7006;
}

.back-home-link i {
    margin-right: 6px;
}

/* LOGIN FOOTER */
.login-footer {
    margin-top: 25px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

/* TOAST NOTIFICATION */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #0e8907;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification i {
    font-size: 18px;
}

/* ERROR TOAST */
.toast-notification.toast-error {
    background: #e5322d;
}

/* ACTION TOAST (Signup Prompt) */
.toast-notification.toast-action {
    background: #fff;
    color: #333;
    flex-direction: column;
    align-items: flex-start;
    max-width: 350px;
    padding: 20px;
    border-left: 4px solid #ae7006;
}

.toast-notification.toast-action .toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #e5322d;
    font-weight: 600;
}

.toast-notification.toast-action .toast-content i {
    color: #e5322d;
}

.toast-notification.toast-action .toast-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.toast-notification.toast-action .toast-question {
    width: 100%;
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.toast-notification.toast-action .toast-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.toast-notification.toast-action .toast-btn-yes {
    background: #ae7006;
    color: #fff;
}

.toast-notification.toast-action .toast-btn-yes:hover {
    background: #8f5c05;
}

.toast-notification.toast-action .toast-btn-no {
    background: #f5f5f5;
    color: #666;
}

.toast-notification.toast-action .toast-btn-no:hover {
    background: #e0e0e0;
}

/* LOADING SPINNER ANIMATION */
@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.fa-spin {
    animation: fa-spin 1s linear infinite;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 480px) {
    .login-card {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .login-title {
        font-size: 24px;
    }

    .login-logo img {
        width: 55px;
        height: 55px;
    }

    .country-code {
        padding: 10px 12px;
        font-size: 14px;
    }

    .form-input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .otp-input {
        letter-spacing: 5px;
        font-size: 16px;
    }

    .btn-primary-custom {
        padding: 12px 18px;
        font-size: 15px;
    }

    .toast-notification {
        right: 10px;
        left: 10px;
        padding: 12px 18px;
    }
}

/* ================= ANIMATIONS ================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.login-card {
    animation: fadeIn 0.5s ease-out;
}

.otp-section {
    animation: fadeIn 0.4s ease-out;
}