:root 
{
    --bg-body: #050816;
    --bg-card: #070f1f;
    --bg-card-soft: #0b1326;
    --border-soft: rgba(148, 163, 184, 0.26);
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --accent-blue: #38bdf8;
    --accent-purple: #a855f7;
    --accent-green: #22c55e;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --transition-fast: 0.18s ease-out;
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.8);
}

/* Wrapper principal */
.rg-register-wrapper, .rg-login-wrapper 
{
    width: 100%;
    max-width: none;
}

/* Carte formulaire */
.rg-register-card, .rg-login-card
{
    background: radial-gradient(circle at top, #0b1220, #020617 70%);
    border-radius: var(--radius-xl);
    padding: 15px 26px 26px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.32);
    backdrop-filter: blur(14px);
}

/* Titres */
.rg-register-title, .rg-login-title 
{
    font-size: 1.45rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.rg-register-subtitle, .rg-login-subtitle
{
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Formulaire */
.rg-register-form, .rg-login-form
{
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 420px;
    margin: 0 auto;
}

.rg-output-login .alert 
{
    padding: 5px 10px;
    margin-bottom: 0px;
}

.rg-form-footer a
{
    font-size: 14px;
}

.btn-login
{
    margin-bottom: 10px;
}

/* Groupes de champs */
.rg-form-group 
{
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rg-label 
{
    font-size: 0.8rem;
    font-weight: 500;
    color: #cbd5f5;
}

/* Inputs */
.rg-input 
{
    background: var(--bg-card-soft);
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    padding: 10px 14px;
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

.rg-input::placeholder 
{
    color: #6b7280;
}

.rg-input:focus 
{
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
    background: #020617;
    transform: translateY(-1px);
}

/* Texte d'aide */
.rg-help 
{
    font-size: 0.75rem;
    color: #6b7280;
}

/* Bouton principal */
.rg-btn-primary 
{
    margin-top: 6px;
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 11px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    color: #f9fafb;
    background-image: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    box-shadow: 0 12px 30px rgba(88, 28, 135, 0.8);
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        filter var(--transition-fast);
}

.rg-btn-primary:hover 
{
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 16px 40px rgba(88, 28, 135, 0.9);
}

.rg-btn-primary:active 
{
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.8);
}

/* Texte légal */
.rg-legal 
{
    margin-top: 10px;
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.4;
    text-align: center;
}

.rg-link 
{
    color: var(--accent-blue);
    text-decoration: none;
}

.rg-link:hover 
{
    text-decoration: underline;
}

/* Responsive léger */
@media (max-width: 480px) 
{
    .rg-register-card {
        padding: 24px 18px 20px;
        border-radius: 18px;
    }

    .rg-register-title {
        font-size: 1.3rem;
    }
}