:root {
    --va-bg: #020617;
    --va-surface: #02091b;
    --va-surface-soft: #02081a;
    --va-primary: #10b981;
    --va-accent: #fbbf24;
    --va-border: #1f2937;
    --va-text: #e5e7eb;
    --va-text-muted: #9ca3af;
    --va-radius-lg: 18px;
    --va-radius-pill: 999px;
    --va-shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.7);
}

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

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at top, #0b1120 0, #020617 60%, #020617 100%);
    color: var(--va-text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
}

.va-auth-shell {
    width: 100%;
    max-width: 420px;
    position: relative;
}

.va-auth-glow {
    position: absolute;
    inset: -12%;
    background:
        radial-gradient(circle at 20% 0, rgba(16, 185, 129, 0.18), transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(251, 191, 36, 0.16), transparent 60%);
    filter: blur(3px);
    opacity: 0.9;
    z-index: 0;
}

.va-auth-card {
    position: relative;
    z-index: 1;
    background: linear-gradient(145deg, #02081a, #020617);
    border-radius: var(--va-radius-lg);
    border: 1px solid rgba(31, 41, 55, 0.95);
    box-shadow: var(--va-shadow-soft);
    padding: 1.9rem 1.7rem 1.7rem;
}

/* Header */

.va-auth-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.4rem;
}

.va-auth-logo {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.95);
}

.va-auth-title-block {
    display: flex;
    flex-direction: column;
}

.va-auth-name {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.va-auth-tagline {
    font-size: 0.75rem;
    color: var(--va-text-muted);
}

/* Title */

.va-auth-heading {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
}

.va-auth-subtitle {
    margin: 0 0 1.4rem;
    font-size: 0.85rem;
    color: var(--va-text-muted);
}

/* Form */

.va-auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.va-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.va-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.va-label-row a {
    color: var(--va-text);
    text-decoration: none;
}

.va-label-row a:hover {
    text-decoration: underline;
}

.va-field label {
    color: var(--va-text);
    font-weight: 500;
}

.va-field input {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(55, 65, 81, 0.95);
    background: rgba(15, 23, 42, 0.95);
    color: var(--va-text);
    font-size: 0.9rem;
}

.va-field input:focus {
    outline: none;
    border-color: rgba(16, 185, 129, 0.8);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.4);
}

/* Button */

.va-auth-btn {
    margin-top: 0.35rem;
    width: 100%;
    padding: 0.75rem 1.2rem;
    border-radius: var(--va-radius-pill);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--va-primary), #22c55e);
    color: #022c22;
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.4);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.va-auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(16, 185, 129, 0.55);
}

/* Links / footnote */

.va-auth-foot {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--va-text-muted);
}

.va-auth-foot a {
    color: var(--va-text);
    text-decoration: none;
}

.va-auth-foot a:hover {
    text-decoration: underline;
}

/* Flash / errors */

.va-flash {
    margin-bottom: 0.9rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    font-size: 0.8rem;
    border: 1px solid transparent;
}

.va-flash-error {
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(127, 29, 29, 0.65);
    color: #fecaca;
}

.va-flash-success {
    border-color: rgba(22, 163, 74, 0.6);
    background: rgba(22, 101, 52, 0.7);
    color: #bbf7d0;
}

.va-auth-foot-right {
    display: flex;
    gap: 0.8rem;
}