* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at 50% 0%, #ffffff 0%, #edf2f8 56%, #e4ebf4 100%);
    color: #0f172a;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1.2rem;
    gap: 1rem;
}

.site-header {
    width: 100%;
    max-width: 1240px;
}

.auth-card {
    width: 100%;
    max-width: 760px;
    border: 1px solid #d9e2ec;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
    padding: 1.5rem;
}

h1 {
    font-size: 2.05rem;
    margin-bottom: 0.3rem;
    color: #0f172a;
}

.subtitle {
    color: #475569;
    margin-bottom: 1rem;
    font-size: 1.08rem;
}

.mode-toggle {
    display: flex;
    gap: 9px;
    margin-bottom: 0.9rem;
}

.mode-btn {
    border: 1px solid #c7d2e0;
    background: #fff;
    color: #1f2937;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 700;
}

.mode-btn.active {
    border-color: #87c5ef;
    color: #075985;
    background: #e8f4fc;
}

.oauth-btn {
    width: 100%;
    border: 1px solid #cfd8e5;
    background: #fff;
    color: #1f2937;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 700;
    margin-bottom: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.oauth-btn:hover {
    background: #f8fafc;
}

.google-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.9rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #d9e2ec;
}

.divider span {
    padding: 0 10px;
}

.form-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-weight: 700;
    font-size: 0.96rem;
}

input {
    border: 1px solid #cfd8e5;
    border-radius: 11px;
    padding: 12px 14px;
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: #87c5ef;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
}

.primary {
    margin-top: 0.55rem;
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 12px;
    background: linear-gradient(100deg, #2458d8 0%, #19c8da 100%);
    color: #fff;
    padding: 12px 14px;
    font-size: 1.04rem;
    font-weight: 800;
    cursor: pointer;
}

.link-btn {
    border: none;
    background: transparent;
    color: #0f766e;
    cursor: pointer;
    font-weight: 700;
    text-align: left;
    padding: 5px 2px;
}

.recovery-block {
    margin-top: 1rem;
    border: 1px solid #bfd5ef;
    border-radius: 12px;
    background: #eef7ff;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.auth-message {
    min-height: 20px;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #475569;
}

.hidden {
    display: none;
}

.site-footer {
    text-align: center;
    color: #475569;
    font-size: 0.87rem;
    margin-top: 0.35rem;
}

.site-footer a {
    color: #0f4fa8;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 700;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Sticky footer layout */
.site-footer {
    width: 100%;
    max-width: 1240px;
    margin-top: auto;
    text-align: initial;
}

.site-footer a {
    margin: 0;
}
