/* Login Page - Clean White Minimal Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-navy: #31328d;
    --brand-yellow: #dee20e;
    --brand-cyan: #04a3e8;
    --brand-periwinkle: #b8cbe6;
    --brand-slate: #7d7fb8;
}

body.login-body-wrapper {
    font-family: 'Plus Jakarta Sans', 'Montserrat', sans-serif;
    background: #f4f6fd;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    color: #1e293b;
}

/* Subtle background pattern */
.auth-bg-mesh {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(49, 50, 141, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(4, 163, 232, 0.05) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

/* Left accent stripe */
.auth-bg-mesh::after {
    content: '';
    position: fixed;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #31328d 0%, #04a3e8 50%, #dee20e 100%);
}

/* Main Container */
.auth-main-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Card */
.auth-card {
    width: 100%;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 32px rgba(49, 50, 141, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid #e9edf8;
}

/* Header */
.auth-header {
    padding: 28px 32px 22px;
    text-align: center;
    border-bottom: 1px solid #f1f4fc;
    position: relative;
}

.auth-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 32px;
    right: 32px;
    height: 2px;
    background: linear-gradient(90deg, #31328d, #04a3e8);
    border-radius: 2px;
}

.auth-logo-box {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.auth-logo-img {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.auth-title {
    font-size: 17px;
    font-weight: 800;
    color: #31328d;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.auth-subtitle {
    color: #6b7a9e;
    font-size: 11px;
    font-weight: 500;
}

/* Body Form Section */
.auth-body {
    padding: 24px 32px 26px;
}

/* Alerts */
.auth-alert-box {
    background: #fff5f5;
    border-left: 3px solid #ef4444;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 12.5px;
    color: #b91c1c;
    font-weight: 600;
}

.auth-alert-box.success {
    background: #f0fdf4;
    border-left-color: #22c55e;
    color: #15803d;
}

.auth-alert-box.success h4 {
    color: #166534;
}

.auth-alert-box.success p {
    color: #15803d;
}

.auth-alert-box.info {
    background: #eff6ff;
    border-left-color: #3b82f6;
    color: #1d4ed8;
}

.auth-alert-box.info h4 {
    color: #1e40af;
}

.auth-alert-box.info p {
    color: #1d4ed8;
}

.auth-alert-icon {
    display: none;
}

.auth-alert-text h4 {
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 2px;
    color: #991b1b;
}

.auth-alert-text p {
    margin: 0;
    font-size: 12px;
    color: #b91c1c;
}

.shake-animation {
    animation: shake 0.4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Form Fields */
.form-field-group {
    margin-bottom: 16px;
}

.form-field-group label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.field-input-box {
    position: relative;
}

.field-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 12.5px;
    pointer-events: none;
    z-index: 1;
}

.field-input-box input {
    width: 100%;
    padding: 10.5px 13px 10.5px 38px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.2s ease;
    font-family: inherit;
}

.field-input-box input:focus {
    outline: none;
    border-color: #31328d;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(49, 50, 141, 0.08);
}

.field-input-box input::placeholder {
    color: #c0ccd8;
    font-weight: 400;
    font-size: 12.5px;
}

/* Password Toggle */
.pwd-visibility-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
    line-height: 1;
}

.pwd-visibility-btn:hover {
    color: #31328d;
}

/* Captcha Section */
.captcha-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.captcha-badge {
    font-size: 9px;
    font-weight: 700;
    background: #eff6ff;
    color: #2563eb;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid #bfdbfe;
}

.captcha-box-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.captcha-challenge-badge {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 13px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #31328d;
}

.btn-refresh-captcha {
    background: transparent;
    border: none;
    color: #94a3b8;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-refresh-captcha:hover {
    color: #31328d;
    background: #e9edf8;
}

.captcha-input-box {
    width: 100px;
    flex-shrink: 0;
}

.captcha-input-box input {
    padding-left: 13px;
    padding-right: 13px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Remember Row */
.auth-options-row {
    margin: 10px 0 18px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
}

.custom-checkbox {
    width: 15px;
    height: 15px;
    accent-color: #31328d;
    cursor: pointer;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 12px;
    background: #31328d;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-family: inherit;
}

.auth-submit-btn:hover {
    background: #252670;
    box-shadow: 0 4px 16px rgba(49, 50, 141, 0.25);
    transform: translateY(-1px);
}

.auth-submit-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Footer Link */
.auth-card-footer {
    text-align: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.auth-card-footer a {
    color: #31328d;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.auth-card-footer a:hover {
    color: #04a3e8;
}

/* Bottom Area */
.auth-bottom-security {
    margin-top: 18px;
    text-align: center;
}

.security-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 3px;
}

.dot-separator {
    color: #cbd5e1;
}

.copyright-text {
    font-size: 10px;
    color: #b0bdd0;
    font-weight: 400;
}

/* Back button */
.back-portal-btn {
    position: absolute;
    top: 20px;
    left: 24px;
    color: #475569;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 14px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.back-portal-btn:hover {
    border-color: #31328d;
    color: #31328d;
    box-shadow: 0 2px 8px rgba(49, 50, 141, 0.12);
}