:root {
    --neo-auth-bg: #d7dee8;
    --neo-auth-card: #ffffff;
    --neo-auth-border: #c7d3e0;
    --neo-auth-text: #1e293b;
    --neo-auth-muted: #64748b;
    --neo-auth-primary: #1d4f7b;
    --neo-auth-primary-hover: #153f64;
    --neo-auth-success-bg: #dcfce7;
    --neo-auth-success-text: #166534;
    --neo-auth-danger-bg: #fff1f2;
    --neo-auth-danger-text: #b91c1c;
}

* {
    box-sizing: border-box;
}

.neo-auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: Figtree, "Segoe UI", sans-serif;
    color: var(--neo-auth-text);
    background:
        radial-gradient(circle at top right, rgba(47, 99, 142, 0.14), transparent 48%),
        linear-gradient(180deg, #e4ebf4, var(--neo-auth-bg));
}

.neo-auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 16px;
}

.neo-auth-card {
    width: min(100%, 460px);
    background: var(--neo-auth-card);
    border: 1px solid var(--neo-auth-border);
    border-radius: 16px;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.12);
    padding: 24px;
}

.neo-auth-brand {
    text-align: center;
    margin-bottom: 20px;
}

.neo-auth-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 1px solid #dbe4ef;
    background: #f8fbff;
    margin-bottom: 12px;
    overflow: hidden;
}

.neo-auth-logo-image {
    width: 84px;
    height: 84px;
    object-fit: cover;
}

.neo-auth-logo-icon {
    width: 52px;
    height: 52px;
    color: #2f638e;
}

.neo-auth-title {
    margin: 0;
    font-size: clamp(1.58rem, 1.65vw + 0.75rem, 2rem);
    line-height: 1.15;
    font-weight: 800;
}

.neo-auth-subtitle {
    margin: 8px 0 0;
    color: var(--neo-auth-muted);
    font-size: 14px;
    line-height: 1.55;
}

.neo-auth-form {
    display: grid;
    gap: 13px;
}

.neo-auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.neo-auth-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.4;
    padding: 10px 12px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.neo-auth-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.neo-auth-error {
    margin-top: 6px;
    font-size: 12px;
    color: #b91c1c;
    font-weight: 600;
}

.neo-auth-info {
    margin: 0;
    border-radius: 10px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
    font-size: 13px;
    line-height: 1.45;
    padding: 10px 12px;
    font-weight: 600;
}

.neo-auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    margin: 2px 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.neo-auth-divider::before,
.neo-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d6dee8;
}

.neo-auth-google-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #d1dae5;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 14px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.neo-auth-google-btn:hover {
    border-color: #9fb4ca;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.neo-auth-google-btn svg {
    width: 19px;
    height: 19px;
}

.neo-auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.neo-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
}

.neo-auth-check input {
    width: 15px;
    height: 15px;
    accent-color: var(--neo-auth-primary);
}

.neo-auth-link {
    color: var(--neo-auth-primary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.neo-auth-link:hover {
    text-decoration: underline;
}

.neo-auth-footer {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    color: #475569;
}

.neo-btn {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.neo-btn-primary {
    width: 100%;
    border-color: var(--neo-auth-primary);
    background: var(--neo-auth-primary);
    color: #fff;
}

.neo-btn-primary:hover {
    background: var(--neo-auth-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(29, 79, 123, 0.24);
}

.neo-auth-submit {
    position: relative;
    min-height: 42px;
    margin-top: 2px;
}

.neo-auth-submit-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    display: none;
    animation: neo-spin 0.7s linear infinite;
}

.neo-auth-submit.is-loading .neo-auth-submit-label {
    display: none;
}

.neo-auth-submit.is-loading .neo-auth-submit-spinner {
    display: inline-block;
}

.neo-auth-submit[disabled] {
    opacity: 0.72;
    cursor: not-allowed;
    box-shadow: none;
}

@keyframes neo-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 540px) {
    .neo-auth-shell {
        padding: 16px 10px;
    }

    .neo-auth-card {
        padding: 20px 16px;
    }
}

/* ----------------------------------------------------------
   Glassmorphism + Motion Enhancements (Authentication)
   ---------------------------------------------------------- */
:root {
    --neo-auth-glass: rgba(255, 255, 255, 0.7);
    --neo-auth-glass-border: rgba(255, 255, 255, 0.52);
    --neo-auth-motion-fast: 180ms;
    --neo-auth-motion-base: 240ms;
}

.neo-auth-body {
    background:
        radial-gradient(circle at 8% 3%, rgba(255, 255, 255, 0.34), transparent 38%),
        radial-gradient(circle at 92% 4%, rgba(59, 130, 246, 0.2), transparent 28%),
        linear-gradient(180deg, #e2ebf5 0%, #d7dee8 100%);
}

.neo-auth-card {
    background: var(--neo-auth-glass);
    border-color: var(--neo-auth-glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: neo-auth-fade-up var(--neo-auth-motion-base) ease;
}

.neo-auth-brand,
.neo-auth-form > * {
    animation: neo-auth-fade-up var(--neo-auth-motion-base) ease both;
}

.neo-auth-form > *:nth-child(2) {
    animation-delay: 30ms;
}

.neo-auth-form > *:nth-child(3) {
    animation-delay: 60ms;
}

.neo-auth-form > *:nth-child(4) {
    animation-delay: 90ms;
}

.neo-auth-input,
.neo-auth-google-btn,
.neo-btn,
.neo-auth-link,
.neo-auth-check input {
    transition:
        background-color var(--neo-auth-motion-fast) ease,
        border-color var(--neo-auth-motion-fast) ease,
        box-shadow var(--neo-auth-motion-fast) ease,
        color var(--neo-auth-motion-fast) ease,
        transform var(--neo-auth-motion-fast) ease,
        opacity var(--neo-auth-motion-fast) ease;
}

.neo-auth-input {
    background: rgba(255, 255, 255, 0.82);
}

.neo-auth-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 10px 18px rgba(59, 130, 246, 0.12);
}

.neo-auth-google-btn:hover {
    transform: translateY(-2px) scale(1.01);
}

.neo-btn-primary:hover {
    transform: translateY(-2px) scale(1.01);
}

.neo-btn-primary:active,
.neo-auth-google-btn:active {
    transform: translateY(0) scale(0.985);
}

@keyframes neo-auth-fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .neo-auth-card,
    .neo-auth-brand,
    .neo-auth-form > *,
    .neo-auth-input,
    .neo-auth-google-btn,
    .neo-btn,
    .neo-auth-link,
    .neo-auth-check input {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}
