/* ----- header -----*/
    :root {
        --primary-color: #4F46E5;
        --secondary-color: #7C3AED;
        --dark-color: #1F2937;
        --light-color: #F9FAFB;
        --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    body {
        font-family: 'Inter', sans-serif;
        background: linear-gradient(135deg, rgba(227, 227, 227, 0.9), rgba(160, 160, 160, 0.9)), url('../assets/img/sistem-sekolah.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        min-height: 100vh;
    }
    
    /* Navbar Styles */
    .navbar-custom {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
        transition: all 0.3s ease;
    }
    
    .navbar-brand {
        display: flex;
        align-items: center;
        font-weight: 700;
        font-size: 1.5rem;
        background: var(--gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .navbar-brand img {
        width: 45px;
        height: 45px;
        margin-right: 12px;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    }
    
    .nav-link-custom {
        color: var(--dark-color);
        font-weight: 500;
        font-size: 0.95rem;
        padding: 0.5rem 1.2rem !important;
        margin: 0 0.3rem;
        border-radius: 50px;
        transition: all 0.3s ease;
        position: relative;
        text-decoration: none;
    }
    
    .nav-link-custom:hover {
        color: var(--primary-color);
        background: rgba(79, 70, 229, 0.1);
        transform: translateY(-2px);
    }
    
    .nav-link-custom.active {
        background: var(--gradient);
        color: white !important;
        box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    }
    
    /* Mobile Menu Button */
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(79, 70, 229, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    /* Content Spacing */
    .content-wrapper {
        margin-top: 80px;
    }
    
    /* Responsive Design */
    @media (max-width: 991px) {
        .navbar-brand {
            font-size: 1.2rem;
        }
        
        .navbar-brand img {
            width: 35px;
            height: 35px;
        }
        
        .navbar-nav {
            padding-top: 1rem;
        }
        
        .nav-link-custom {
            margin: 0.2rem 0;
            text-align: center;
        }
    }
    
    @media (max-width: 576px) {
        .navbar-brand span {
            display: none;
        }
        
        .navbar-custom {
            padding: 0.75rem 0;
        }
    }
    
    /* Animations */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .animate-fade-in {
        animation: fadeIn 0.6s ease-out;
    }


/*----index login----*/
    .login-container {
        min-height: calc(100vh - 80px);
        display: flex;
        align-items: center;
        padding: 2rem 0;
    }
    
    .hero-section {
        background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(124, 58, 237, 0.9)),
                    url('/assets/img/sistem-sekolah.jpg');
        background-size: cover;
        background-position: center;
        border-radius: 30px;
        padding: 3rem;
        color: white;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }
    
    .hero-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
        background-size: 50px 50px;
        animation: float 20s linear infinite;
    }
    
    @keyframes float {
        0% { transform: translate(0, 0) rotate(0deg); }
        100% { transform: translate(-100px, -100px) rotate(360deg); }
    }
    
    .hero-content {
        position: relative;
        z-index: 1;
    }
    
    .hero-title {
        font-size: 3rem;
        font-weight: 800;
        margin-bottom: 1.5rem;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
        animation: slideInLeft 0.8s ease-out;
    }
    
    .hero-description {
        font-size: 1.1rem;
        line-height: 1.8;
        opacity: 0.95;
        animation: slideInLeft 1s ease-out;
    }
    
    .login-form-container {
        background: white;
        border-radius: 30px;
        padding: 3rem;
        box-shadow: 0 20px 60px rgba(0,0,0,0.1);
        animation: slideInRight 0.8s ease-out;
    }
    
    .login-title {
        color: var(--primary-color);
        font-weight: 700;
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .login-subtitle {
        color: #6B7280;
        margin-bottom: 2rem;
        font-size: 0.95rem;
    }
    
    .form-floating {
        margin-bottom: 1.5rem;
    }
    
    .form-control {
        border: 2px solid #E5E7EB;
        border-radius: 15px;
        padding: 1rem 1rem 1rem 3rem;
        font-size: 1rem;
        transition: all 0.3s ease;
        background-color: #F9FAFB;
    }
    
    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.1);
        background-color: white;
    }
    
    .input-icon {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: #9CA3AF;
        z-index: 10;
    }
    
    .form-group {
        position: relative;
        margin-bottom: 1.5rem;
    }
    
    .btn-login {
        background: var(--gradient);
        color: white;
        border: none;
        border-radius: 50px;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        font-weight: 600;
        width: 100%;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
    }
    
    .btn-login::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s ease;
    }
    
    .btn-login:hover::before {
        left: 100%;
    }
    
    .alert-custom {
        border-radius: 15px;
        padding: 1rem 1.5rem;
        border: none;
        animation: slideDown 0.5s ease-out;
    }
    
    .divider {
        text-align: center;
        position: relative;
        margin: 2rem 0;
    }
    
    .divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: #E5E7EB;
    }
    
    .divider span {
        background: white;
        padding: 0 1rem;
        position: relative;
        color: #9CA3AF;
        font-size: 0.9rem;
    }
    
    .social-login {
        display: flex;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .social-btn {
        flex: 1;
        padding: 0.75rem;
        border: 2px solid #E5E7EB;
        border-radius: 15px;
        background: white;
        color: #374151;
        font-weight: 500;
        transition: all 0.3s ease;
        text-decoration: none;
        text-align: center;
    }
    
    .social-btn:hover {
        border-color: var(--primary-color);
        background: rgba(79, 70, 229, 0.05);
        color: var(--primary-color);
        transform: translateY(-2px);
    }
    
    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Responsive Design */
    @media (max-width: 991px) {
        .hero-section {
            display: none;
        }
        
        .login-form-container {
            max-width: 500px;
            margin: 0 auto;
        }
    }
    
    @media (max-width: 576px) {
        .login-form-container {
            padding: 2rem 1.5rem;
            border-radius: 20px;
        }
        
        .hero-title {
            font-size: 2rem;
        }
        
        .btn-login {
            padding: 0.875rem 1.5rem;
            font-size: 1rem;
        }
    }
    
    /* Show password toggle */
    .password-toggle {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        color: #9CA3AF;
        z-index: 10;
        background: none;
        border: none;
        padding: 0.5rem;
    }
    
    .password-toggle:hover {
        color: var(--primary-color);
    }
