
:root {
    --primary-orange: #ee9310;
    --primary-orange-hover: #d88106;
    --primary-orange-dark: #b86900;
    --primary-orange-soft: rgba(238, 147, 16, 0.08);
    --primary-orange-ring: rgba(238, 147, 16, 0.22);
    --text-heading: #111827;
    --text-body: #374151;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --bg-surface: #ffffff;
    --bg-page: #f8fafc;
}

body {
    background-color: var(--bg-page) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-body);
    margin: 0;
    padding: 0;
}

.login-wrapper {
    padding: 5px 0 64px;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 80px - 280px);
}

.login-card {
    background: var(--bg-surface);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.07), 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    max-width: 1020px;
    margin: 0 auto;
}

.login-left {
    position: relative;
    height: 100%;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px 36px;
    background: #ee9310 url('../img/index11.jpg') center/cover no-repeat;
    overflow: hidden;
}

.login-left-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(238, 145, 16, 0) 0%, rgba(78, 77, 76, 0.518) 100%);
    backdrop-filter: blur(1.5px);
    z-index: 1;
}

.login-left-content {
    position: relative;
    z-index: 2;
}

.badge-pill-nsf {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.welcome-heading {
    color: #ffffff;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 14px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    letter-spacing: -0.3px;
}

.welcome-desc {
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 26px;
}

.left-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.left-features .feature-item {
    display: flex;
    align-items: center;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 500;
}

.left-features .feature-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.left-features .feature-icon svg {
    stroke: #ffffff;
}

.login-right {
    padding: 48px 44px;
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 560px;
}

.login-header {
    margin-bottom: 24px;
}

.login-title {
    font-size: 27px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.login-subtitle {
    font-size: 14.5px;
    color: var(--text-muted);
    margin-bottom: 0;
}

.login-right .form-group {
    margin-bottom: 18px;
}

.login-right .form-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 6px;
    display: block;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #9ca3af;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    transition: color 0.2s ease;
}

.input-wrapper:focus-within .input-icon {
    color: var(--primary-orange);
}

.input-wrapper .form-control {
    height: 48px;
    padding: 10px 14px 10px 42px;
    border-radius: 9px;
    border: 1.5px solid var(--border-color);
    font-size: 14.5px;
    color: var(--text-heading);
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: none;
}

.input-wrapper .form-control::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

.input-wrapper .form-control:focus {
    border-color: var(--primary-orange) !important;
    box-shadow: 0 0 0 3.5px var(--primary-orange-ring) !important;
    background-color: #ffffff;
    outline: none;
}

/* Password Toggle Eye */
.btn-toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #9ca3af;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.btn-toggle-password:hover {
    color: var(--primary-orange);
    background-color: var(--primary-orange-soft);
}

.btn-toggle-password:focus {
    outline: none;
    color: var(--primary-orange);
}

.login-field-error {
    font-size: 12.5px;
    color: #dc2626;
    margin-top: 5px;
    min-height: 18px;
    font-weight: 500;
}

.login-field--invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.form-options-row {
    margin-top: 2px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-remember-check {
    display: flex;
    align-items: center;
    padding-left: 0;
    margin-bottom: 0;
}

.custom-remember-check .form-check-input {
    width: 17px;
    height: 17px;
    margin: 0 8px 0 0;
    position: static;
    accent-color: var(--primary-orange);
    cursor: pointer;
}

.custom-remember-check .form-check-label {
    font-size: 13.5px;
    color: var(--text-body);
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
    font-weight: 500;
}

.forgot-password-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary-orange);
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password-link:hover {
    color: var(--primary-orange-hover);
    text-decoration: underline;
}

/* Main Submit Button */
.login-btn-main {
    height: 48px;
    border-radius: 9px;
    background-color: var(--primary-orange) !important;
    border: none;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(238, 147, 16, 0.28);
}

.login-btn-main:hover,
.login-btn-main:focus {
    background-color: var(--primary-orange-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(238, 147, 16, 0.38);
    color: #ffffff !important;
}

.login-btn-main:active {
    transform: translateY(0);
}

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 22px 0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.login-divider span {
    padding: 0 14px;
}

/* Google Login Button */
.google-login-btn {
    height: 48px;
    border-radius: 9px;
    background-color: #ffffff !important;
    border: 1.5px solid var(--border-color) !important;
    color: var(--text-heading) !important;
    font-size: 14.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.google-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    object-fit: contain;
}

.google-login-btn:hover,
.google-login-btn:focus {
    background-color: #f9fafb !important;
    border-color: rgba(238, 147, 16, 0.55) !important;
    color: var(--text-heading) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Register Prompt */
.login-register-prompt {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.register-link {
    color: var(--primary-orange);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.register-link:hover {
    color: var(--primary-orange-hover);
    text-decoration: underline;
}

.login-box-body .alert {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13.5px;
    margin-bottom: 18px;
    border: none;
}

.login-box-body .alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.login-box-body .alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.login-box-body .alert .close {
    font-size: 18px;
    line-height: 1;
    color: inherit;
    opacity: 0.6;
}

.login-box-body .alert .close:hover {
    opacity: 1;
}


/* Medium Screens / Small Desktops & Tablets (<= 991.98px) */
@media (max-width: 991.98px) {
    .login-wrapper {
        padding: 32px 15px 48px;
    }

    .login-left {
        min-height: 480px;
        padding: 36px 28px;
    }

    .welcome-heading {
        font-size: 26px;
    }

    .login-right {
        padding: 38px 32px;
        min-height: 480px;
    }
}

/* Mobile Screens (<= 767.98px) */
@media (max-width: 767.98px) {
    .login-wrapper {
        padding: 20px 12px 36px;
    }

    .login-card {
        border-radius: 14px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    }

    .login-left {
        min-height: auto;
        height: 180px;
        padding: 24px 20px;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .badge-pill-nsf {
        margin-bottom: 8px;
        padding: 4px 12px;
        font-size: 11px;
    }

    .welcome-heading {
        font-size: 20px;
        margin-bottom: 0;
    }

    .welcome-desc,
    .left-features {
        display: none;
    }

    .login-right {
        padding: 28px 20px;
        min-height: auto;
    }

    .login-title {
        font-size: 24px;
    }

    .login-subtitle {
        font-size: 13.5px;
        margin-bottom: 0;
    }

    .input-wrapper .form-control {
        height: 46px;
        font-size: 14px;
    }

    .login-btn-main,
    .google-login-btn {
        height: 46px;
        font-size: 14.5px;
    }

    .form-options-row {
        flex-direction: row;
        gap: 8px;
    }
}

/* Extra Small Phones (<= 420px) */
@media (max-width: 420px) {
    .form-options-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}