/* Pages connexion / création de compte : layout centré, footer en bas */
body.auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.auth-page .container.auth-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-container {
    max-width: 420px;
    width: 100%;
    margin: 24px auto 32px;
    background: #17171c;
    border: 1px solid #26262c;
    border-radius: 12px;
    padding: 24px 20px;
    box-sizing: border-box;
}

@media (max-width: 374px) {
  .auth-container {
    margin: 16px auto 24px;
    padding: 20px 16px;
    border-radius: 10px;
  }
}

@media (min-width: 768px) {
  .auth-container {
    margin-top: 48px;
    border-radius: 16px;
    padding: 32px;
  }
}

.auth-container h1 {
    margin-bottom: 24px;
    text-align: center;
}

form label {
    display: block;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

form input {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 10px 12px;
    margin-top: 6px;
    border-radius: 8px;
    border: 1px solid #26262c;
    background: #0f0f12;
    color: #fff;
}

form input:focus {
    outline: none;
    border-color: #ff4d8d;
}
form input:focus-visible {
    outline: 2px solid #ff4d8d;
    outline-offset: 2px;
}

.auth-password-wrap {
    display: block;
    position: relative;
    margin-top: 6px;
}

.auth-password-wrap input {
    padding-right: 44px;
    margin-top: 0;
}

.auth-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: #b0b0b0;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-password-toggle-icon {
    display: block;
    color: inherit;
}

.auth-password-toggle:hover {
    color: #ff4d8d;
}

.auth-password-toggle:focus {
    outline: none;
    color: #ff4d8d;
}
.auth-password-toggle:focus-visible {
    outline: 2px solid #ff4d8d;
    outline-offset: 2px;
}

.auth-error {
    display: block;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: rgba(255, 77, 109, 0.12);
    border: 1px solid rgba(255, 77, 109, 0.35);
    border-radius: 10px;
    color: #ff6b8a;
    font-size: 0.95rem;
    text-align: center;
}

.auth-error[hidden] {
    display: none;
}

.auth-legal-checkboxes {
    margin-bottom: 20px;
}

.auth-legal-label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e0e0e0;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #ccc;
    cursor: pointer;
}

.auth-checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0;
    flex-shrink: 0;
}

.auth-checkbox-label a {
    color: #ff4d8d;
    text-decoration: none;
}

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

.auth-legal-error {
    margin-top: 8px;
    padding: 10px 12px;
    background: rgba(255, 77, 109, 0.12);
    border: 1px solid rgba(255, 77, 109, 0.35);
    border-radius: 8px;
    color: #ff6b8a;
    font-size: 0.9rem;
}

.auth-legal-error[hidden] {
    display: none;
}

.auth-verify-block {
    margin-bottom: 20px;
    padding: 16px 18px;
    background: rgba(255, 77, 109, 0.08);
    border: 1px solid rgba(255, 77, 109, 0.25);
    border-radius: 12px;
}

.auth-verify-block[hidden] {
    display: none;
}

.auth-verify-message {
    margin: 0 0 12px 0;
    color: #e8a5b5;
    font-size: 0.95rem;
}

.auth-verify-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0 0 8px 0;
}

.auth-verify-actions .btn-secondary {
    margin: 0;
}

.auth-verify-link {
    color: #ff4d8d;
    font-size: 0.95rem;
    text-decoration: none;
}

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

.auth-verify-success {
    margin: 8px 0 0 0;
    font-size: 0.9rem;
    color: #6bcf7b;
}

.auth-verify-success[hidden] {
    display: none;
}

.auth-forgot {
    margin: -4px 0 16px;
    text-align: right;
    font-size: 0.9rem;
}

.auth-forgot a {
    color: #ff4d8d;
    text-decoration: none;
}

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

.auth-forgot-intro {
    margin: 0 0 20px;
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.auth-step2 {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-success {
    display: block;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: rgba(107, 207, 123, 0.12);
    border: 1px solid rgba(107, 207, 123, 0.35);
    border-radius: 10px;
    color: #6bcf7b;
    font-size: 0.95rem;
    text-align: center;
}

.auth-success[hidden] {
    display: none;
}

.password-rules {
    font-size: 0.85rem;
    color: #b0b0b0;
    margin: -8px 0 16px;
}

.age-notice {
    font-size: 0.85rem;
    color: #b0b0b0;
    margin: 16px 0 8px;
    line-height: 1.5;
}

.age-notice a {
    color: #ff4d8d;
    text-decoration: none;
}

.age-notice a:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    margin-top: 16px;
    padding: 14px 16px;
    min-height: 48px;
    background: #ff4d8d;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    color: #0f0f12;
    font-weight: 600;
}

.auth-reassurance {
    margin-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #b0b0b0;
    line-height: 1.5;
}

.auth-link {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.auth-link a {
    color: #ff4d8d;
    text-decoration: none;
}

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

.auth-divider {
    margin: 20px 0 12px;
    text-align: center;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.auth-guest {
    text-align: center;
    margin-bottom: 20px;
}

.btn-secondary {
    display: inline-block;
    padding: 14px 24px;
    min-height: 48px;
    box-sizing: border-box;
    background: transparent;
    border: 1px solid #444;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #ccc;
    text-decoration: none;
    text-align: center;
}

.btn-secondary:hover {
    border-color: #666;
    color: #fff;
}

/* Étape vérification email (inscription) */
.auth-verify-step {
    margin-top: 0;
}
.auth-verify-info {
    margin-bottom: 20px;
    color: #ccc;
    font-size: 0.95rem;
}
.auth-verify-info strong {
    color: #ff4d8d;
}
.auth-resend {
    margin-top: 16px;
    text-align: center;
}
.btn-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    box-sizing: border-box;
    background: none;
    border: none;
    color: #ff4d8d;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}
.btn-link:hover {
    color: #ff6b88;
}
.btn-link:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.form-message {
    margin-top: 12px;
    font-size: 0.9rem;
}
.form-message.success {
    color: #6bcf7b;
}
.form-message.error {
    color: #f66;
}
