/* static/css/auth.css */
:root {
    --bg: #f5f7fb;
    --card-bg: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --primary: #6366f1;
    --primary-2: #8b5cf6;
}

html, body {
    height: 100%;
}

body {
    background:
        radial-gradient(1200px 800px at 10% -10%, #eef2ff 0%, transparent 60%),
        radial-gradient(1200px 800px at 110% 10%, #ecfeff 0%, transparent 60%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

/* Center the auth container vertically within the viewport */
.auth-fullheight-center {
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* center on small screens */
    justify-content: center;
    padding-left: 12px;
    padding-right: 12px;
}

/* On medium/large screens, place card slightly above the vertical center */
@media (min-width: 768px) {
    .auth-fullheight-center {
        align-items: flex-start;
        padding-top: 10vh;
        /* visually sits a bit higher than exact center */
    }
}

/* On small screens, place card near the top for better ergonomics */
@media (max-width: 575.98px) {
    .auth-fullheight-center {
        align-items: flex-start;
        padding-top: 24px;
    }
}

.auth-container {
    max-width: 520px;
    margin: 24px auto;
    padding: 28px 28px 24px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow:
        0 20px 40px rgba(2, 6, 23, 0.06),
        0 2px 8px rgba(2, 6, 23, 0.04);
}

h1, h2 {
    font-weight: 700;
    color: var(--text);
    letter-spacing: .2px;
}

.h3-style {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.form-control {
    height: 48px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fafafa;
    transition: all .2s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .25rem rgba(99, 102, 241, .15);
    background: #fff;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    border: none;
    height: 48px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 8px 16px rgba(99, 102, 241, .25);
    transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-primary:hover {
    filter: brightness(1.02);
    box-shadow: 0 12px 24px rgba(99, 102, 241, .35);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 6px 12px rgba(99, 102, 241, .25);
}

#clientError, #successMessage {
    border-radius: 10px;
    padding: 10px 12px;
}

/* Secondary button to visually match primary */
.btn-secondary {
    background: linear-gradient(90deg, var(--muted), #475569);
    border: none;
    height: 48px;
    border-radius: 12px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 6px 12px rgba(2, 6, 23, .15);
    transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-secondary:hover {
    filter: brightness(1.02);
    box-shadow: 0 10px 20px rgba(2, 6, 23, .20);
}
.btn-secondary:active {
    transform: translateY(1px);
    box-shadow: 0 4px 8px rgba(2, 6, 23, .15);
}

@media (max-width: 575.98px) {
    .auth-container {
        margin: 12px auto;
        padding: 20px;
        border-radius: 14px;
    }

    h1, h2 {
        font-size: 1.25rem;
    }
}