/* GeniRadio — overlay inscription / connexion */

.auth-panel { position: relative; z-index: 10; }

.auth-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-tab {
    flex: 1;
    padding: 0.65rem 0.5rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.auth-tab.is-active {
    background: rgba(0, 240, 255, 0.12);
    color: #00f0ff;
    box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.25);
}

body.theme-pink .auth-tab.is-active {
    background: rgba(255, 102, 204, 0.15);
    color: #ff66cc;
    box-shadow: inset 0 0 0 1px rgba(255, 102, 204, 0.3);
}

.auth-form { display: none; }
.auth-form.is-visible { display: block; }

.auth-field { margin-bottom: 0.9rem; text-align: left; }

.auth-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

.auth-input-wrap { position: relative; }

.auth-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 2.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.08);
}

body.theme-pink .auth-input:focus {
    border-color: rgba(255, 102, 204, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 102, 204, 0.1);
}

.auth-input.is-error { border-color: rgba(255, 0, 60, 0.6); }

.auth-toggle-pw {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0.35rem;
    font-size: 0.9rem;
}

.auth-toggle-pw:hover { color: rgba(255, 255, 255, 0.7); }

.auth-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.auth-hint {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 0.35rem;
}

.auth-strength {
    height: 3px;
    border-radius: 999px;
    margin-top: 0.45rem;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.auth-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width 0.25s, background 0.25s;
}

.auth-btn-primary {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.95rem 1rem;
    border: none;
    border-radius: 12px;
    background: #fff;
    color: #000;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.auth-btn-primary:hover:not(:disabled) { transform: scale(1.02); }
.auth-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.auth-btn-primary .auth-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-top-color: #000;
    border-radius: 50%;
    animation: auth-spin 0.7s linear infinite;
    vertical-align: -0.15em;
}

@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.1rem 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-oauth { display: flex; flex-direction: column; gap: 0.55rem; }

.auth-oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.auth-oauth-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.auth-oauth-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.auth-guest {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.55rem;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    cursor: pointer;
    transition: color 0.15s;
}

.auth-guest:hover { color: rgba(255, 255, 255, 0.65); }

.auth-error {
    font-size: 0.75rem;
    color: #ff6b8a;
    text-align: center;
    margin: 0.5rem 0 0;
    min-height: 1.1rem;
}

.auth-error:empty { display: none; }

/* Session active — accueil rapide */
.auth-welcome {
    display: none;
    text-align: center;
}

.auth-welcome.is-visible { display: block; }

.auth-welcome-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 0.75rem;
    border: 2px solid rgba(0, 240, 255, 0.35);
    background: rgba(0, 0, 0, 0.4);
}

body.theme-pink .auth-welcome-avatar { border-color: rgba(255, 102, 204, 0.4); }

.auth-welcome-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.25rem;
}

.auth-welcome-sub {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1.25rem;
}

.auth-logout-link {
    display: block;
    margin-top: 0.65rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
}

.auth-logout-link:hover { color: rgba(255, 255, 255, 0.55); }

.auth-migrate-banner {
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.85rem;
    border-radius: 10px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.45;
    text-align: left;
}

@media (max-height: 600px) and (orientation: landscape) {
    .auth-tabs { margin-bottom: 0.75rem; }
    .auth-field { margin-bottom: 0.6rem; }
    .auth-row-2 { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
}