/* assets/css/pages/login.css — extracted from the page, colours mapped to design tokens */

/* from login/index.php */

        *, *::before, *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background:url('/assets/images/login-bg.png') no-repeat center center fixed;
            background-size: cover;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            position: relative;
        }

        body::before {
            content: '';
            position: absolute;
            inset: 0;
            background:rgba(0, 0, 0, 0.55);
            z-index: 1;
        }

        /* ── Card wrapper ── */
        .login-container {
            width: 100%;
            max-width: 380px;  
            position: relative;
            z-index: 2;
        }

        .login-card {
    background:rgba(255,255,255,0.05);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border:1px solid rgba(255, 255, 255, 0.2);
    border-radius:16px;

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);

    overflow: hidden;
}

        /* ── Header ── */
        .login-header {
        background:radial-gradient(
        circle at center,
        #120016 0%,
        #220033 35%,
        #480185 75%,
        #44027a 100%
    );
            color:white;
            padding: 24px 24px 20px; 
            text-align: center;
            position: relative;
        }
        
        .login-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background:linear-gradient(
        180deg,
        rgba(255,255,255,0.10) 0%,
        rgba(255,255,255,0.02) 40%,
        rgba(0,0,0,0.15) 100%
    );
    pointer-events: none;
}
        .login-header::before {
            content: '';
            position: absolute;
            inset: 0;
            background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="g" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M10 0L0 0 0 10" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23g)"/></svg>');
        }

        .logo-section {
            position: relative;
            margin-bottom: 6px;
        }

        .logo {
            max-width: 130px; 
            height: auto;
            border-radius:8px;
            padding: 4px;
        }

        .welcome-section {
            position: relative;
        }

        .welcome-section p {
            font-size: 0.92rem;
            opacity: 0.9;
            letter-spacing: 0.3px;
        }

        /* ── Body ── */
        .login-body {
            padding: 24px 28px 20px;  
        }

        .alert {
            padding: 11px 16px;
            border-radius:10px;
            margin-bottom: 18px;
            font-size: 0.88rem;
            text-align: center;
        }

        .alert-error {
            background:linear-gradient(135deg, #fee2e2, #fecaca);
            color:#dc2626;
        }

        .alert-success {
            background:linear-gradient(135deg, #d1fae5, #a7f3d0);
            color:#065f46;
        }

        .form-group {
            margin-bottom: 16px;  
        }

        .form-label {
            display: block;
            margin-bottom: 7px;
            font-weight: 600;
            color:#374151;
            font-size: 0.88rem;
        }

        .form-input {
            width: 100%;
            padding: 9px 13px;   
            border:1.5px solid #e5e7eb;
            border-radius:10px;
            font-size: 0.95rem;
            transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
            background:white;
            color:#111827;
        }

        .form-input:focus {
            outline:none;
            border-color:#3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
            transform: translateY(-1px);
        }

        /* ── Turnstile ── */
        .cf-turnstile-container {
            margin: 4px 0 0;
            display: flex;
            justify-content: center;
        }

        /* ── Submit button ── */
        .login-btn {
            width: 100%;
            padding: 11px 20px; 
            background:linear-gradient(135deg, #10b981, #059669);
            color:white;
            border:none;
            border-radius:10px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
            margin-top: 8px;
            box-shadow: 0 6px 16px rgba(16, 185, 129, 0.28);
            letter-spacing: 0.3px;
        }

        .login-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 10px 22px rgba(16, 185, 129, 0.38);
        }

        .login-btn:active:not(:disabled) {
            transform: translateY(0);
        }

        .login-btn:disabled {
            background:linear-gradient(135deg, #9ca3af, #6b7280);
            cursor: not-allowed;
            box-shadow: none;
        }

        /* ── Footer ── */
        .login-footer {
    background:rgba(255,255,255,0.05);
    color:rgba(255,255,255,0.8);
    border-top:1px solid rgba(255,255,255,0.15);
}
.login-footer {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 14px 24px;
    background:rgba(255,255,255,0.05);
    border-top:1px solid rgba(255,255,255,0.15);
    color:rgba(255,255,255,0.8);
    font-size: 0.8rem;
}
        /* ── Force logout notice ── */
        .force-logout {
            background:linear-gradient(135deg, #ffebee, #ffcdd2);
            padding: 14px 18px;
            margin-bottom: 16px;
            border-radius:12px;
            text-align: center;
            border:1.5px solid #fecaca;
        }

        .force-logout a {
            color:#d32f2f;
            text-decoration: none;
            font-weight: 600;
            padding: 6px 14px;
            border:1.5px solid #d32f2f;
            border-radius:8px;
            transition: all 0.25s;
            display: inline-block;
            margin-top: 8px;
            font-size: 0.88rem;
        }

        .force-logout a:hover {
            background:#d32f2f;
            color:white;
        }

        /* ── Mobile ── */
        @media (max-width: 420px) {
            .login-container { max-width: 100%; }
            .login-header    { padding: 20px 18px 16px; }
            .login-body      { padding: 20px 20px 16px; }
            .logo            { max-width: 110px; }
        }
    
