/* ── Login Page CSS ── */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --indigo: #6366f1;
    --purple: #9333ea;
    --pink: #db2777;
    --dark: #0f0f1a;
    --card-bg: rgba(20, 20, 40, 0.75);
    --border: rgba(255,255,255,0.08);
    --text: #f0f0ff;
    --muted: #94a3b8;
    --error-bg: rgba(239,68,68,0.12);
    --error-border: rgba(239,68,68,0.35);
}

html, body {
    min-height: 100vh;
    background: var(--dark);
    font-family: 'Cairo', sans-serif;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ── Animated background orbs ── */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
    animation: float 8s ease-in-out infinite alternate;
}
.orb1 { width: 420px; height: 420px; background: #6366f1; top: -100px; right: -100px; }
.orb2 { width: 350px; height: 350px; background: #db2777; bottom: -80px; left: -80px; animation-delay: -3s; }
.orb3 { width: 260px; height: 260px; background: #9333ea; top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: -1.5s; }

@keyframes float {
    from { transform: translateY(0) scale(1); }
    to   { transform: translateY(-30px) scale(1.08); }
}

/* ── Card ── */
.card {
    position: relative;
    z-index: 10;
    width: min(100%, 420px);
    padding: 44px 40px 40px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 28px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 32px 80px rgba(0,0,0,0.55);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.logo {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    display: block;
}
.logo svg { width: 100%; height: 100%; }

h1 {
    text-align: center;
    font-size: 1.9rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--indigo), var(--purple), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 6px;
}

.subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 28px;
}

/* ── Alert ── */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: #f87171;
    font-size: 0.93rem;
    margin-bottom: 20px;
    animation: shake 0.4s ease;
}
.alert-icon { font-size: 1.1rem; }

@keyframes shake {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* ── Fields ── */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 0.9rem; font-weight: 700; color: var(--muted); }

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon {
    position: absolute;
    right: 14px;
    font-size: 1rem;
    pointer-events: none;
    user-select: none;
}
input {
    width: 100%;
    padding: 14px 44px 14px 16px;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
input:focus {
    border-color: var(--indigo);
    background: rgba(99,102,241,0.08);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.15);
}
input::placeholder { color: rgba(255,255,255,0.2); }

/* ── Submit button ── */
button[type="submit"] {
    width: 100%;
    margin-top: 8px;
    padding: 15px 24px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(90deg, var(--indigo), var(--purple), var(--pink));
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(99,102,241,0.35);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(99,102,241,0.45);
    filter: brightness(1.08);
}
button[type="submit"]:active { transform: translateY(0); }

.arrow { width: 20px; height: 20px; }

@media (max-width: 480px) {
    .card { padding: 32px 24px 28px; }
    h1 { font-size: 1.6rem; }
}
