/* Area accesso volontari — login / registrazione */

.vol-auth-section {
    background: linear-gradient(180deg, rgba(12, 6, 20, 0.15) 0%, rgba(12, 6, 20, 0.55) 100%);
}

.vol-auth-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
    padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
    .vol-auth-card {
        padding: 2.5rem 2.75rem;
    }
}

.vol-auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.vol-auth-header .section-title .title {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.vol-auth-header p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    margin: 0.75rem 0 0;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.vol-auth-tabs {
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto 2rem;
    width: 100%;
    max-width: 360px;
}

.vol-auth-tab {
    flex: 1 1 0;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.vol-auth-tab.is-active,
.vol-auth-tab:hover {
    background: var(--bs-primary, #b8860b);
    color: #fff;
}

.vol-auth-panel {
    display: none;
}

.vol-auth-panel.is-active {
    display: block;
}

.vol-auth-form {
    max-width: 560px;
    margin: 0 auto;
}

.vol-auth-form--wide {
    max-width: 720px;
}

.vol-auth-field {
    margin-bottom: 1.15rem;
}

.vol-auth-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.45rem;
}

.vol-auth-field input,
.vol-auth-field select {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.vol-auth-field input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.vol-auth-field input:focus,
.vol-auth-field select:focus {
    outline: none;
    border-color: rgba(184, 134, 11, 0.65);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.18);
}

.vol-auth-field select option {
    background: #1a1228;
    color: #fff;
}

.vol-auth-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 1.25rem;
}

@media (min-width: 768px) {
    .vol-auth-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vol-auth-grid .vol-auth-field--full {
        grid-column: 1 / -1;
    }
}

.vol-auth-alert:empty {
    display: none;
}

.vol-auth-alert .alert {
    border-radius: 12px;
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}

.vol-auth-submit {
    margin-top: 1.5rem;
    text-align: center;
}

.vol-auth-submit .btn-gradient {
    min-width: 200px;
    justify-content: center;
}

.vol-auth-hint {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
}

.vol-auth-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.vol-auth-link-btn {
    background: none;
    border: none;
    color: var(--bs-primary, #d4a843);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.88rem;
    padding: 0;
}

.vol-auth-forgot {
    text-align: right;
    margin-top: -0.5rem;
    margin-bottom: 0.25rem;
}

.vol-auth-forgot a {
    color: var(--bs-primary, #d4a843);
    text-decoration: none;
    font-size: 0.88rem;
}

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