/* assets/css/login.css */
/* Premium Login Screen Styles — EOC Assessment System */

/* ─── Login Container Entrance ─── */
#login-container {
    opacity: 0;
}

/* ─── Background Gradient Mesh ─── */
.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(10, 25, 49, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(0, 242, 254, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(124, 77, 204, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

/* ─── Floating Logo Animation ─── */
#logo-shield {
    animation: float 5s ease-in-out infinite;
    will-change: transform;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(1.5deg);
    }
}

/* ─── Title Styling with forced line breaks ─── */
.login-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    color: #0f172a !important;
    line-height: 1.7;
    letter-spacing: -0.01em;
}

/* Force each title-line to be its own line */
.login-title .title-line {
    display: block !important;
    white-space: nowrap;
}

.login-subtitle {
    font-size: 0.7rem;
    font-weight: 500;
    color: #94a3b8 !important;
    text-align: center;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 6px;
}

/* ─── Accent Divider ─── */
.login-divider {
    width: 48px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0A1931, #7C4DCC) !important;
    margin: 20px auto;
    opacity: 0.7;
}

/* ─── Input Focus Glow ─── */
.login-input:focus {
    box-shadow: 0 0 0 3px rgba(10, 25, 49, 0.08), 0 2px 8px rgba(10, 25, 49, 0.06) !important;
    border-color: #0A1931 !important;
    outline: none;
}

.login-input {
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

/* ─── Submit Button Gradient (override DaisyUI + global) ─── */
.login-btn {
    background: linear-gradient(135deg, #0A1931 0%, #1a2d4d 50%, #0A1931 100%) !important;
    background-size: 200% 200% !important;
    animation: gradient-shift 4s ease infinite;
    border: none !important;
    color: #ffffff !important;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(10, 25, 49, 0.3) !important;
    background: linear-gradient(135deg, #0d2240 0%, #1e3558 50%, #0d2240 100%) !important;
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.7 !important;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ─── Particle System ─── */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.particle-cyan {
    background: radial-gradient(circle, rgba(0, 242, 254, 0.25) 0%, transparent 70%) !important;
}

.particle-purple {
    background: radial-gradient(circle, rgba(124, 77, 204, 0.15) 0%, transparent 70%) !important;
}

.particle-navy {
    background: radial-gradient(circle, rgba(10, 25, 49, 0.08) 0%, transparent 70%) !important;
}

/* ─── Footer Links Hover ─── */
.login-link {
    position: relative;
    transition: color 0.2s ease;
}

.login-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 0;
    height: 1px;
    background: #0A1931;
    transition: width 0.3s ease, left 0.3s ease;
}

.login-link:hover::after {
    width: 100%;
    left: 0;
}

/* ─── Ministry Badge ─── */
.ministry-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(10, 25, 49, 0.04) !important;
    border: 1px solid rgba(10, 25, 49, 0.1) !important;
    font-size: 0.65rem;
    color: #64748b !important;
    font-weight: 500;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ─── Version Badge ─── */
.version-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(124, 77, 204, 0.08) !important;
    border: 1px solid rgba(124, 77, 204, 0.18) !important;
    font-size: 0.6rem;
    color: #7C4DCC !important;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ─── Mobile Responsive ─── */
@media (max-width: 440px) {
    .login-title {
        font-size: 1.05rem;
    }
    .login-title .title-line {
        white-space: normal;
    }
}
