/* ==========================================
   Modern Login Stylesheet for LLDIKTI IV BO
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

body.current-auth-login,
body.current-page {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    background: radial-gradient(circle at 15% 15%, #1e293b 0%, #0f172a 50%, #020617 100%) !important;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: #334155;
    position: relative;
    overflow-x: hidden;
}

/* Ambient glow blobs in background */
body.current-auth-login::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(37, 99, 235, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

body.current-auth-login::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: 15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, rgba(14, 165, 233, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.content-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 2rem 1rem;
}

/* Modern Card Wrapper */
.card-auth-modern {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.4), 
                0 0 0 1px rgba(255, 255, 255, 0.2) !important;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-auth-modern:hover {
    box-shadow: 0 30px 70px -15px rgba(15, 23, 42, 0.5), 
                0 0 0 1px rgba(255, 255, 255, 0.3) !important;
}

/* Header Logo & Branding */
.auth-header-modern {
    padding: 2.25rem 2.25rem 1.25rem 2.25rem;
    text-align: center;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
}

.auth-header-modern .brand-logo {
    max-width: 210px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.04));
}

.auth-header-modern .system-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.auth-header-modern h4 {
    color: #0f172a;
    font-weight: 700;
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.auth-header-modern p {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Body & Form */
.auth-body-modern {
    padding: 1.75rem 2.25rem 2.25rem 2.25rem;
}

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

.auth-form-group label {
    display: block;
    color: #334155;
    font-size: 0.825rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper i,
.input-icon-wrapper svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    width: 18px;
    height: 18px;
    transition: color 0.2s ease;
    pointer-events: none;
    z-index: 2;
}

.input-icon-wrapper .form-control {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem !important;
    height: auto !important;
    font-size: 0.925rem;
    font-weight: 500;
    color: #0f172a;
    background-color: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    transition: all 0.2s ease-in-out !important;
}

.input-icon-wrapper .form-control:focus {
    background-color: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
    outline: none !important;
}

.input-icon-wrapper .form-control:focus + i,
.input-icon-wrapper .form-control:focus + svg,
.input-icon-wrapper:focus-within i,
.input-icon-wrapper:focus-within svg {
    color: #2563eb;
}

/* Hide default footer on login page */
footer.footer,
.footer {
    display: none !important;
}


/* Submit Button & Loading State */
.btn-modern-primary {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
    cursor: pointer;
    transition: all 0.2s ease-in-out !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
    position: relative;
}

.btn-modern-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35) !important;
    transform: translateY(-1px);
}

.btn-modern-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2) !important;
}

.btn-modern-primary:disabled,
.btn-modern-primary.is-loading {
    opacity: 0.85 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Custom Spinner Animation */
@keyframes spin-loader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.custom-spinner {
    display: none !important;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin-loader 0.7s linear infinite;
    vertical-align: middle;
}

#btn-login-submit.is-loading .custom-spinner {
    display: inline-block !important;
}

#btn-login-submit.is-loading .btn-text {
    display: none !important;
}


/* BSrE Integration Footer */
.auth-footer-bsre {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px dashed #e2e8f0;
    text-align: center;
}

.auth-footer-bsre .bsre-badge-text {
    font-size: 0.725rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.auth-footer-bsre img {
    max-width: 130px;
    height: auto;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.auth-footer-bsre img:hover {
    opacity: 1;
}

/* Alert Styling */
.form-message .alert {
    border-radius: 12px !important;
    font-size: 0.85rem !important;
    padding: 0.75rem 1rem !important;
    margin-bottom: 1.25rem !important;
    border: none !important;
}

.form-message .alert-danger {
    background-color: #fef2f2 !important;
    color: #991b1b !important;
    border-left: 4px solid #ef4444 !important;
}
