/* Pages connexion / inscription */

.page-auth {
    margin: 0;
    min-height: 100vh;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.auth-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth-visual {
    position: relative;
    background-image: var(--auth-bg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
}

.auth-visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, rgba(6, 10, 18, 0.3) 0%, rgba(6, 10, 18, 0.85) 60%, rgba(6, 10, 18, 0.95) 100%),
        linear-gradient(90deg, rgba(12, 74, 110, 0.4) 0%, transparent 70%);
}

.auth-visual-content {
    position: relative;
    z-index: 1;
    max-width: 420px;
    color: #f1f5f9;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none !important;
    margin-bottom: 2rem;
}

.auth-logo .logo-mark {
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    font-size: 1.2rem;
}

.auth-visual-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

.auth-visual-content > p {
    color: #94a3b8;
    font-size: 1.05rem;
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-features li {
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.auth-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #f59e0b;
    font-weight: 700;
}

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 3rem;
    background: #0a0f18;
    overflow-y: auto;
}

.auth-back {
    font-size: 0.9rem;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 2rem;
    align-self: flex-start;
}

.auth-back:hover {
    color: #38bdf8;
}

.auth-form-wrap {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.auth-form-wrap h1 {
    font-size: 1.85rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
    color: #f1f5f9;
}

.auth-subtitle {
    color: #64748b;
    margin: 0 0 1.75rem;
    font-size: 0.95rem;
}

.auth-form .form-group {
    margin-bottom: 1.15rem;
}

.auth-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 0.4rem;
}

.auth-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 1px solid #1e293b;
    background: #141c2b;
    color: #f1f5f9;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.auth-form input::placeholder {
    color: #475569;
}

.btn-auth-submit {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.9rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #fff;
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(245, 158, 11, 0.45);
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: #64748b;
    font-size: 0.95rem;
}

.auth-switch a {
    color: #38bdf8;
    font-weight: 600;
}

.page-auth .alert {
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .auth-page {
        grid-template-columns: 1fr;
    }
    .auth-visual {
        min-height: 220px;
        padding: 1.5rem;
        align-items: flex-end;
    }
    .auth-visual-content h2 {
        font-size: 1.35rem;
    }
    .auth-features { display: none; }
    .auth-panel {
        padding: 2rem 1.5rem 3rem;
    }
}
