/*
 * register.css — Page d'inscription
 * Layout miroir de login.css (deux panneaux)
 * Harmonisé avec main.css et login.css
 */

/* ═══════════════════════════════════════════
   LAYOUT DEUX PANNEAUX
═══════════════════════════════════════════ */
.register-page {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: stretch;
}

.register-wrapper {
    display: flex;
    width: 100%;
    min-height: 100%;
}

/* ── Panneau gauche — visuel ────────────── */
.register-visual {
    flex: 1;
    background:
        linear-gradient(135deg, rgba(10,22,40,.90) 0%, rgba(13,59,140,.82) 100%),
        url('../images/IMG_0998.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

/* Motif décoratif */
.register-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(91,142,245,.12) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(200,151,42,.08) 0%, transparent 50%);
}

.register-visual-inner {
    position: relative;
    z-index: 1;
    max-width: 380px;
}

.register-logo {
    width: 130px;
    height: auto;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
    opacity: .9;
}

.register-visual-title {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: .75rem;
    line-height: 1.3;
}

.register-visual-text {
    font-size: .93rem;
    color: rgba(255,255,255,.70);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Features list */
.register-features {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.register-feature {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .88rem;
    color: rgba(255,255,255,.80);
}

.register-feature i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-300);
    font-size: .85rem;
    flex-shrink: 0;
}

/* ── Panneau droit — formulaire ─────────── */
.register-form-panel {
    width: 520px;
    flex-shrink: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2.5rem;
    overflow-y: auto;
}

.register-form-inner {
    width: 100%;
    max-width: 420px;
    padding: 1rem 0;
}

/* ═══════════════════════════════════════════
   TYPOGRAPHIE
═══════════════════════════════════════════ */
.register-title {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--blue-900);
    margin-bottom: .3rem;
}

.register-subtitle {
    font-size: .9rem;
    color: var(--text-soft);
    margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════
   CHAMPS
   .form-label, .input-icon-wrapper, .input-icon,
   .form-control focus : voir main.css
═══════════════════════════════════════════ */
.form-control {
    height: 46px;
}

.form-control-icon {
    padding-left: 2.6rem !important;
    height: 46px;
}

.form-text {
    font-size: .76rem;
    color: var(--text-soft);
    margin-top: .3rem;
}

/* ═══════════════════════════════════════════
   BOUTON INSCRIPTION — socle dans main.css
═══════════════════════════════════════════ */
.btn-register {
    width: 100%;
    height: 50px;
    font-size: 1rem;
    margin-top: .75rem;
}

/* ═══════════════════════════════════════════
   LIENS BAS DE PAGE
═══════════════════════════════════════════ */
.register-footer-links {
    margin-top: 1.5rem;
    text-align: center;
}

.register-footer-links p {
    font-size: .88rem;
    color: var(--text-mid);
    margin-bottom: .5rem;
}

.register-footer-links a {
    color: var(--blue-500);
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
}

.register-footer-links a:hover {
    color: var(--blue-700);
    text-decoration: underline;
}

.register-back {
    font-size: .82rem;
    font-weight: 400 !important;
    color: var(--text-soft) !important;
}

.register-back:hover {
    color: var(--text-mid) !important;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 960px) {
    .register-visual {
        display: none;
    }
    .register-form-panel {
        width: 100%;
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .register-title {
        font-size: 1.6rem;
    }
    .register-form-panel {
        padding: 2rem 1.25rem;
    }
}
