/* ============================================
   Teacher Login Page — Premium Styling
   Microsoft Silverlight Institute
   ============================================ */

/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Full-page background with image */
.fi-simple-layout {
    background: url('/template/admin.jpg') no-repeat center center !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    position: relative;
    z-index: 1;
    font-family: 'Inter', sans-serif !important;
    min-height: 100vh !important;
}

/* Dark overlay for readability */
.fi-simple-layout::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 35, 0.75);
    z-index: 0;
    pointer-events: none;
}

/* Glassmorphism login card */
.fi-simple-main {
    font-family: 'Inter', sans-serif !important;
    background: rgba(15, 20, 40, 0.72) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05) !important;
    border-radius: 24px !important;
    padding: 3rem 3rem !important;
    max-width: 500px !important;
    width: 100% !important;
    position: relative;
    z-index: 1;
}

/* ---- Branding: Center logo + name ---- */
.fi-simple-main .fi-brand-logo,
.fi-simple-main [class*="brand"],
.fi-simple-main header,
.fi-simple-main > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    margin-bottom: 1.5rem !important;
}

/* Center the logo image */
.fi-simple-main img {
    margin: 0 auto 8px auto !important;
    display: block !important;
    height: 64px !important;
    width: auto !important;
    filter: drop-shadow(0 4px 12px rgba(124,58,237,0.4)) !important;
}

/* Brand name text */
.fi-simple-main .fi-brand-name,
.fi-simple-main [class*="brand-name"] {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.01em !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}

/* "Sign in" heading */
.fi-simple-main h2 {
    font-family: 'Inter', sans-serif !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 2rem !important;
    text-align: center !important;
    letter-spacing: -0.03em !important;
    margin-bottom: 1.5rem !important;
}

/* Field Labels */
.fi-simple-main label,
.fi-simple-main .fi-fo-field-wrp label {
    font-family: 'Inter', sans-serif !important;
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.02em !important;
}

/* Input fields */
.fi-simple-main .fi-input-wrapper {
    font-family: 'Inter', sans-serif !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    padding: 0.25rem 0.5rem !important;
}
.fi-simple-main .fi-input-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}
.fi-simple-main .fi-input-wrapper:focus-within {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18), 0 10px 20px -5px rgba(16, 185, 129, 0.1) !important;
    background: rgba(15, 20, 40, 0.85) !important;
    transform: translateY(-1px) !important;
}

/* Ensure inner inputs are transparent */
.fi-simple-main .fi-input,
.fi-simple-main input[type="email"],
.fi-simple-main input[type="password"],
.fi-simple-main input[type="text"] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
}
.fi-simple-main .fi-input:focus,
.fi-simple-main input[type="email"]:focus,
.fi-simple-main input[type="password"]:focus,
.fi-simple-main input[type="text"]:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

/* Fix eye icon color */
.fi-simple-main .fi-input-wrapper svg {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Submit button */
.fi-simple-main button[type="submit"],
.fi-simple-main .fi-btn-primary {
    font-family: 'Inter', sans-serif !important;
    background: linear-gradient(135deg, #ffc600 0%, #ffa700 100%) !important;
    color: #07294d !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(255, 198, 0, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    width: 100% !important;
    padding: 0.9rem !important;
    position: relative;
    overflow: hidden;
}
.fi-simple-main button[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 198, 0, 0.45), 0 0 0 3px rgba(255, 198, 0, 0.15) !important;
    filter: brightness(1.05);
}
.fi-simple-main button[type="submit"]:active {
    transform: translateY(0) scale(0.985) !important;
    box-shadow: 0 4px 10px rgba(255, 198, 0, 0.2) !important;
}

/* Remember me checkbox label */
.fi-simple-main .fi-checkbox-label {
    color: rgba(255,255,255,0.65) !important;
    font-size: 0.85rem !important;
}

/* Custom premium checked checkbox with embedded SVG checkmark */
.fi-simple-main input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 5px !important;
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
    vertical-align: middle !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 11px 11px !important;
    margin-right: 8px !important;
}

.fi-simple-main input[type="checkbox"]:checked {
    background-color: #ffc600 !important;
    border-color: #ffc600 !important;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='%2307294d' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e") !important;
}

.fi-simple-main input[type="checkbox"]:focus {
    box-shadow: 0 0 0 2px rgba(255, 198, 0, 0.4) !important;
    border-color: #ffc600 !important;
    outline: none !important;
}

/* Hide logo text on login page and center logo */
.fi-simple-main .fi-brand-logo span,
.fi-simple-main .fi-logo span {
    display: none !important;
}
.fi-simple-main .fi-brand-logo a,
.fi-simple-main .fi-logo a {
    justify-content: center !important;
    width: 100% !important;
}
.fi-simple-main img {
    height: 80px !important;
    width: auto !important;
}



/* Hide Sign In text */
.fi-simple-main h2 {
    display: none !important;
}
/* Clean and balanced logo position */
.fi-simple-main .fi-brand-logo a,
.fi-simple-main .fi-logo a {
    margin-top: 2.2rem !important;
    margin-bottom: 1.5rem !important;
}

/* Force form elements to take full 100% width of the card container */
.fi-simple-main form,
.fi-simple-main .fi-form,
.fi-simple-main .grid,
.fi-simple-main [class*="grid"],
.fi-simple-main .fi-fo-field-wrp,
.fi-simple-main .fi-fo-field-wrp > div,
.fi-simple-main .fi-simple-header {
    width: 100% !important;
    max-width: 100% !important;
}


.fi-simple-main h1 {
    display: none !important;
}


/* Style the "Back to login" link on the password reset/forgot password page */
.fi-simple-header-action,
.fi-simple-header-actions,
.fi-simple-main a[href*="login"]:not(#portalDropdownList a) {
    position: absolute !important;
    top: 1.5rem !important;
    left: 1.5rem !important;
    margin: 0 !important;
    z-index: 50 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    color: #ffc600 !important; /* Premium gold accent color matching the primary branding */
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    background: rgba(255, 255, 255, 0.05) !important;
    padding: 0.5rem 0.8rem !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.fi-simple-header-action:hover,
.fi-simple-header-actions:hover,
.fi-simple-main a[href*="login"]:not(#portalDropdownList a):hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateX(-2px) !important;
}

/* ============================================
   MOBILE RESPONSIVE — Teacher Portal
   ============================================ */

.fi-simple-layout {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.5rem !important;
    background-attachment: scroll !important;
}

@media (max-width: 768px) {
    .fi-simple-main {
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 20px !important;
        padding: 2rem 1.75rem !important;
        margin: 0 !important;
    }

    .fi-simple-main img {
        height: 85px !important;
    }

    .fi-simple-main .fi-brand-logo a,
    .fi-simple-main .fi-logo a {
        margin-top: 2.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .fi-simple-main .fi-input-wrapper {
        padding: 0.35rem 0.6rem !important;
    }

    .fi-simple-main .fi-input,
    .fi-simple-main input[type="email"],
    .fi-simple-main input[type="password"],
    .fi-simple-main input[type="text"] {
        font-size: 1rem !important;
        padding: 0.6rem 1rem !important;
    }

    .fi-simple-main button[type="submit"],
    .fi-simple-main .fi-btn-primary {
        padding: 1rem !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .fi-simple-layout {
        padding: 1rem !important;
        align-items: flex-start !important;
        padding-top: 3rem !important;
    }

    .fi-simple-main {
        border-radius: 16px !important;
        padding: 1.75rem 1.25rem !important;
    }

    .fi-simple-main img {
        height: 65px !important;
    }

    .fi-simple-main .fi-brand-logo a,
    .fi-simple-main .fi-logo a {
        margin-top: 2rem !important;
        margin-bottom: 1.5rem !important;
    }

    .fi-simple-main label,
    .fi-simple-main .fi-fo-field-wrp label {
        font-size: 0.9rem !important;
    }

    .fi-simple-main button[type="submit"],
    .fi-simple-main .fi-btn-primary {
        padding: 1.1rem !important;
        font-size: 1rem !important;
        letter-spacing: 0.06em !important;
    }

    .fi-simple-header-action,
    .fi-simple-header-actions,
    .fi-simple-main a[href*="login"]:not(#portalDropdownList a) {
        top: 1rem !important;
        left: 1rem !important;
        font-size: 0.8rem !important;
        padding: 0.4rem 0.65rem !important;
    }
}

/* Force light/readable colors for labels, checkboxes, and portal links in both light and dark themes */
.fi-simple-layout label,
.fi-simple-layout .fi-fo-field-wrp label,
.fi-simple-layout .fi-fo-field-wrp-label,
.fi-simple-layout label[for="data.remember"],
.fi-simple-layout .fi-checkbox-label,
.fi-simple-layout span:not(button span):not(.fi-btn span) {
    color: #cbd5e1 !important; /* Slate-300: highly readable on dark backgrounds */
}

/* Force input wrapper background to stay dark and premium in both themes */
.fi-simple-layout .fi-input-wrapper {
    background: rgba(15, 23, 42, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Force typed input text to be bright white */
.fi-simple-layout input,
.fi-simple-layout input[type="email"],
.fi-simple-layout input[type="password"],
.fi-simple-layout input[type="text"] {
    color: #ffffff !important; /* Pure white typed text */
    -webkit-text-fill-color: #ffffff !important; /* Fix for Webkit autofill text color */
}

/* Force the "SIGN IN" button text to be dark blue/slate for perfect contrast on the gold button */
.fi-simple-layout button[type="submit"],
.fi-simple-layout .fi-btn-primary,
.fi-simple-layout button[type="submit"] span,
.fi-simple-layout .fi-btn-primary span {
    color: #07294d !important;
}

/* Style the "Forgot password?" link to match our premium gold theme and be highly visible */
.fi-simple-layout a.fi-link,
.fi-simple-layout .fi-fo-field-wrp-hint a,
.fi-simple-layout .fi-fo-field-wrp-hint span,
.fi-simple-layout a[href*="password-reset"],
.fi-simple-layout a[href*="reset"] {
    color: #ffc600 !important; /* Gold/yellow accent */
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.fi-simple-layout a.fi-link:hover,
.fi-simple-layout .fi-fo-field-wrp-hint a:hover,
.fi-simple-layout a[href*="password-reset"]:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}




