.auth-section {
    max-width: 560px;
    width: min(560px, 100%);
}

.auth-subtitle {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-field {
    display: grid;
    gap: 0.4rem;
}

.auth-field label {
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text);
}

.auth-field input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--panel-strong);
    color: var(--text);
    font-size: 1rem;
}

.auth-field input::placeholder {
    color: var(--muted);
}

.auth-field input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.auth-extra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.auth-check input {
    width: 16px;
    height: 16px;
}

.auth-button {
    border: none;
    padding: 0.85rem 1.2rem;
    border-radius: 12px;
    background: var(--accent);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 10px 22px var(--shadow);
}

.auth-button:hover {
    filter: brightness(1.05);
}

.auth-link-inline {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

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

.auth-alt {
    margin-top: 1.25rem;
    font-weight: 600;
}

.auth-alt a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 800;
}

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

@media (max-width: 640px) {
    .auth-extra {
        justify-content: center;
    }
}

main {
    min-height: 160vh;
    display: flex;
    flex-direction: column;
}

.mega-footer {
    margin-top: auto;
}
