/* ============================================================
   FileVault – Login Page Styles
   ============================================================ */

.login-body {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 20% 20%, #1E0B40 0%, #0F0F1A 50%, #0A1628 100%);
    padding: var(--space-lg) var(--space-md);
    position: relative;
    overflow: hidden;
}

/* --- Animated Background Orbs --- */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -80px;
    right: -80px;
    animation-delay: 2s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
    opacity: 0.1;
}

/* --- Login Container --- */
.login-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

/* --- Brand Section --- */
.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    text-align: center;
}

.brand-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    animation: pulse 3s ease-in-out infinite;
}

.brand-icon svg {
    width: 36px;
    height: 36px;
    color: #fff;
}

.brand-name {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 40%, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.brand-tagline {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* --- Login Card --- */
.login-card {
    width: 100%;
    padding: var(--space-xl) var(--space-lg);
    box-shadow: var(--shadow-lg), var(--glow);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--space-lg);
}

/* --- Form Inputs --- */
.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--transition);
}

.input-field {
    width: 100%;
    padding: 14px 44px 14px 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 400;
    transition: var(--transition);
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.input-field::placeholder {
    color: var(--text-muted);
}

.input-field:focus {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.08);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

.input-field:focus+.input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--primary-light);
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.toggle-password:hover {
    color: var(--text-secondary);
}

.toggle-password svg {
    width: 18px;
    height: 18px;
}

/* --- Login Button --- */
.btn-login {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    border-radius: var(--radius-md);
    margin-top: var(--space-sm);
    position: relative;
}

.btn-loader svg {
    width: 20px;
    height: 20px;
}

/* --- Alert --- */
.alert {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #FCA5A5;
}

/* --- Hint & Footer --- */
.login-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
    text-align: center;
}

.login-footer {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}