#login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    background-color: transparent;
    padding: 20px;
}

.auth-shell {
    min-height: 62vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
}

.auth-card {
    width: min(100%, 480px);
    padding: 38px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 18px;
    background: linear-gradient(145deg, #1b1b1b, #101010);
    box-shadow: 0 24px 70px rgba(0,0,0,.45);
    text-align: center;
}

.auth-card-wide { width: min(100%, 640px); }
.auth-card h2 { margin-top: 4px; }
.auth-card p { color: #bbb; line-height: 1.6; }
.auth-eyebrow { color: #f44336 !important; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .76rem; }
.auth-note { font-size: .83rem; }

.google-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin: 25px 0 17px;
    padding: 13px 18px;
    min-height: 52px;
    border-radius: 12px;
    background: #fff;
    color: #202124;
    border: 1px solid #dadce0;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0,0,0,.22);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.google-button:hover { color: #202124; background: #f7f8f8; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.3); }
.google-button:focus-visible { outline: 3px solid #8ab4f8; outline-offset: 3px; }
.google-mark { font: 800 1.2rem Arial, sans-serif; color: #4285f4; }

.profile-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.sonar-form { text-align: left; }
.sonar-form input[type="text"], .sonar-form textarea, .sonar-form select {
    width: 100%; padding: 11px; color: #fff; background: #242424; border: 1px solid #444; border-radius: 7px;
}
.sonar-form button {
    width: 100%;
    min-height: 50px;
    margin-top: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff5a4d, #d92e28);
    box-shadow: 0 10px 24px rgba(244,67,54,.28);
    font-weight: 800;
}
.sonar-form button:hover { background: linear-gradient(135deg, #ff7468, #e53935); transform: translateY(-2px); }
.sonar-form button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.legal-check { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; color: #ddd; line-height: 1.5; }
.legal-check input { margin-top: 5px; }
.errorlist { color: #ff8a80; }
.selected-google-account { color: #fff; overflow-wrap: anywhere; }
.auth-form-errors { margin: 14px 0; padding: 12px 14px; border: 1px solid #ef5350; border-radius: 8px; background: rgba(239,83,80,.1); color: #ffc3be; }
.auth-form-errors .errorlist { margin-bottom: 0; }
.auth-alternatives, .auth-error-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.auth-error-actions .google-button { margin: 0; }
.auth-reference { font-family: monospace; font-size: .78rem; color: #999 !important; }

@media (max-width: 520px) {
    .auth-shell { min-height: auto; padding: 20px 12px; place-items: start center; }
    .auth-card { padding: 26px 18px; border-radius: 12px; }
    .social-signup-card { overflow: visible; }
    .legal-check { min-height: 44px; }
    .legal-check input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 20px; }
    .auth-alternatives, .auth-error-actions { align-items: stretch; flex-direction: column; }
}


.form-container {
    background-color: #1c1c1c;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    background-color: #333;
    color: #fff;
    border: 1px solid #444;
    border-radius: 5px;
}

.form-group input:focus {
    border-color: #f44336;
    outline: none;
}

.error-message {
    background-color: #f44336;
    color: #fff;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background-color: #f44336;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: #d32f2f;
}
