@import '../../../../vendor/filament/filament/resources/css/theme.css';

@source '../../../../app/Filament/**/*';
@source '../../../../resources/views/filament/**/*';

@tailwind base;
@tailwind components;
@tailwind utilities;

/* ==========================================================================
   LOGIN ADMIN LMS - SMKN 8 MEDAN
   Fully Responsive | Light/Dark Mode | Modern Glassmorphism
   ========================================================================== */

/*---------------------------------------------------------------------------
   BACKGROUND LAYOUT
---------------------------------------------------------------------------*/

.fi-simple-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background-color 0.3s ease;
}

/* Light Mode Background - Soft Gradient */
.fi-simple-layout {
    background: linear-gradient(145deg, #f0f5ff 0%, #e6edfa 100%);
}

/* Dark Mode Background - Deep Space */
.dark .fi-simple-layout {
    background: radial-gradient(ellipse at top, #0b1120 0%, #030712 100%);
}

/*---------------------------------------------------------------------------
   LOGIN CARD - Glassmorphic Design
---------------------------------------------------------------------------*/

.fi-simple-main {
    width: 420px !important;
    padding: 32px !important;
    border-radius: 28px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Card */
.fi-simple-main {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.02) inset;
}

/* Dark Card */
.dark .fi-simple-main {
    background: rgba(10, 15, 30, 0.85) !important;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 
        0 30px 60px -15px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

/* ==========================================================
   CLEAN SIMPLE HEADER (RAPI)
   ========================================================== */

.fi-simple-header {
    margin-bottom: 26px;
}

/* Wrapper */
.fi-simple-header-school {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Logo */
.fi-simple-header-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

/* Text Block */
.fi-simple-header-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

/* Title */
.fi-simple-header-school-name {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.dark .fi-simple-header-school-name {
    color: #f1f5f9;
}

/* Sub */
.fi-simple-header-system {
    font-size: 13px;
    color: #64748b;
}

.dark .fi-simple-header-system {
    color: #94a3b8;
}

/* Admin Panel Label */
.fi-simple-header-panel {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #3b82f6;
}

.dark .fi-simple-header-panel {
    color: #60a5fa;
}



/* ==========================================================
   WELCOME TEXT
   ========================================================== */

.fi-simple-header-welcome {
    margin-top: 18px;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.dark .fi-simple-header-welcome {
    color: #f1f5f9;
}

.fi-simple-header-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-top: 40px;
    margin-bottom: -35px;
}

.dark .fi-simple-header-subtitle {
    color: #94a3b8;
}

/*---------------------------------------------------------------------------
   FORM FIELDS - Modern & Clean
---------------------------------------------------------------------------*/

/* Input Wrapper */
.fi-input-wrp {
    margin-bottom: 20px;
}

/* Input Field */
.fi-input {
    height: 52px !important;
    border-radius: 16px !important;
    transition: all 0.2s ease;
    font-size: 15px !important;
}

/* Light Input */
.fi-input {
    background-color: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

/* Dark Input */
.dark .fi-input {
    background-color: rgba(32, 37, 48, 0.6) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    color: #f1f5f9 !important;
}

/* Input Focus State */
.fi-input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.dark .fi-input:focus {
    border-color: #60a5fa !important;
    box-shadow: 
        0 0 0 4px rgba(96, 165, 250, 0.2),
        0 2px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Input Label */
.fi-input-label {
    font-weight: 600 !important;
    font-size: 14px !important;
    margin-bottom: 6px !important;
    color: #334155 !important;
}

.dark .fi-input-label {
    color: #cbd5e1 !important;
}

/*---------------------------------------------------------------------------
   BUTTON - Premium Gradient
---------------------------------------------------------------------------*/

.fi-btn-primary {
    height: 52px !important;
    border-radius: 18px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    letter-spacing: 0.3px;
    transition: all 0.25s ease !important;
    margin-top: 12px !important;
}

/* Light Button */
.fi-btn-primary {
    background: linear-gradient(105deg, #2563eb 0%, #3b82f6 100%) !important;
    border: none !important;
    box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.4) !important;
}

/* Dark Button */
.dark .fi-btn-primary {
    background: linear-gradient(105deg, #3b82f6 0%, #60a5fa 100%) !important;
    box-shadow: 0 8px 20px -4px rgba(59, 130, 246, 0.3) !important;
}

.fi-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(37, 99, 235, 0.5) !important;
}

.dark .fi-btn-primary:hover {
    box-shadow: 0 12px 28px -4px rgba(59, 130, 246, 0.4) !important;
}

.fi-btn-primary:active {
    transform: translateY(1px);
}

/*---------------------------------------------------------------------------
   LINKS - Forgot Password & Register
---------------------------------------------------------------------------*/

.fi-simple-main .fi-link {
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: color 0.2s ease;
}

.fi-simple-main .fi-link:hover {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

/* Light Links */
.fi-simple-main .fi-link {
    color: #4b5563 !important;
}

.fi-simple-main .fi-link:hover {
    color: #2563eb !important;
}

/* Dark Links */
.dark .fi-simple-main .fi-link {
    color: #9ca3af !important;
}

.dark .fi-simple-main .fi-link:hover {
    color: #60a5fa !important;
}

/*---------------------------------------------------------------------------
   RESPONSIVE ADJUSTMENTS
---------------------------------------------------------------------------*/

/* Tablet */
@media (max-width: 1024px) {
    .fi-simple-main {
        width: 400px !important;
        padding: 28px !important;
    }
    
    .fi-simple-header-school {
        font-size: 28px;
    }
    
    .fi-simple-header-city {
        font-size: 20px;
        letter-spacing: 3px;
    }
    
    .fi-simple-header-system {
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .fi-simple-layout {
        padding: 20px;
    }
    
    .fi-simple-main {
        width: 100% !important;
        max-width: 380px !important;
        padding: 24px !important;
        border-radius: 24px !important;
    }
    
    .fi-simple-header-school {
        font-size: 24px;
        letter-spacing: 1.5px;
    }
    
    .fi-simple-header-city {
        font-size: 18px;
        letter-spacing: 2.5px;
        padding-bottom: 8px;
        margin-bottom: 12px;
    }
    
    .fi-simple-header-system {
        font-size: 15px;
    }
    
    .fi-simple-header-panel {
        font-size: 13px;
    }
    
    .fi-simple-header-welcome {
        font-size: 18px;
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .fi-input {
        height: 48px !important;
        border-radius: 14px !important;
    }
    
    .fi-btn-primary {
        height: 48px !important;
        border-radius: 16px !important;
        font-size: 15px !important;
    }
}

/* Small Mobile */
@media (max-width: 380px) {
    .fi-simple-main {
        padding: 20px !important;
    }
    
    .fi-simple-header-school {
        font-size: 22px;
    }
    
    .fi-simple-header-city {
        font-size: 16px;
        letter-spacing: 2px;
    }
}

/*---------------------------------------------------------------------------
   ANIMATIONS
---------------------------------------------------------------------------*/

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fi-simple-main {
    animation: fadeSlideUp 0.5s ease-out;
}

/*---------------------------------------------------------------------------
   UTILITY - Remove Duplicate & Conflicting Styles
---------------------------------------------------------------------------*/

/* Remove duplicate background from previous rules */
.fi-simple-layout[class] {
    background: none;
}

/* Ensure proper stacking */
.fi-simple-layout {
    isolation: isolate;
}