/* auth.css */

.auth-page {
     min-height: calc(100vh - 50px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #080808;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 138, 31, 0.12), transparent 34%),
        linear-gradient(180deg, #171717 0%, #14110f 45%, #111111 100%);

    padding: 0rem 1rem 2rem;
}

.auth-shell {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    font-style: italic;
    transform: skewX(-4deg);
    font-weight: 700;
    color: #f0f0f0;
    letter-spacing: -0.02em;
    line-height: 1;
}

.auth-logo-img {
    width: 35px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 18px rgba(255, 138, 31, 0.35));
}

/* ── Card */
.auth-card {
    width: 100%;
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 36px 32px;
}

.auth-card h1 {
    font-size: 24px;
    font-weight: 700;
    color: #f0f0f0;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    text-align: center;
}

.auth-sub {
    font-size: 14px;
    color: #555;
    margin-bottom: 28px;
    text-align: center;
}

/* ── Notices */
.auth-notice {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
}

.auth-notice.success {
    background: rgba(34,197,94,0.08);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,0.15);
}

.auth-notice.error {
    background: rgba(239,68,68,0.08);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.15);
}

.auth-errors {
    background: rgba(239,68,68,0.06);
    border: 1px solid rgba(239,68,68,0.12);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.auth-errors p {
    font-size: 13px;
    color: #ef4444;
    margin: 0;
    padding: 3px 0;
}

/* ── Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    font-size: 11px;
    color: #e85d26;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.forgot-link:hover { text-decoration: underline; }

.form-group input {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 14px;
    color: #e0e0e0;
    outline: none;
    transition: border-color 0.15s;
    font-family: inherit;
}

.form-group input:focus {
    border-color: #e85d26;
}

.form-group input::placeholder { color: #444; }

/* ── Remember */
.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    margin-top: -4px;
}

.remember-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #e85d26;
    cursor: pointer;
}

/* ── Button */
/* ── Button */
/* ── Button */
.auth-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--color-orange-light), var(--color-orange-dark));
    color: #fff;
    border: 1px solid rgba(255, 138, 31, 0.45);
    border-radius: 8px;
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow-orange);
    transition: 0.2s ease;
    margin-top: 4px;
    font-family: inherit;
}

.auth-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

/* ── Switch */
.auth-switch {
    text-align: center;
    font-size: 13px;
    color: #555;
    margin-top: 20px;
    margin-bottom: 0;
}

.auth-switch a {
    color: #e85d26;
    text-decoration: none;
}

.auth-switch a:hover { text-decoration: underline; }

/* ── Success state */
.auth-success {
    width: 100%;
    background: #0f0f0f;
    border: 1px solid #1a1a1a;
    border-radius: 16px;
    padding: 36px 32px;
    text-align: center;
}

.success-check {
    font-size: 52px;
    color: #22c55e;
    margin-bottom: 16px;
}

.auth-success h1 {
    font-size: 24px;
    font-weight: 700;
    color: #f0f0f0;
    margin-bottom: 12px;
}

.auth-success p {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}
.auth-success .auth-btn {
    margin-top: 24px;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);

    width: 24px;
    height: 24px;
    padding: 0;

    border: none;
    background: transparent;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 2;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #555;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s ease;
}

.password-toggle:hover svg {
    stroke: #e85d26;
}

.password-toggle .eye {
    display: none;
}

.password-toggle .eye-off {
    display: block;
}

.password-toggle.is-visible .eye {
    display: block;
}

.password-toggle.is-visible .eye-off {
    display: none;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width:900px){

    .auth-page{
        padding:1rem;
        min-height:auto;
    }

    .auth-shell{
        max-width:560px;
        gap:20px;
    }

    .auth-card,
    .auth-success{
        padding:30px 26px;
    }

}

@media (max-width:600px){

    .auth-page{
        align-items:flex-start;
        padding:1rem;
    }

    .auth-shell{
        gap:18px;
    }

    .auth-logo{
        font-size:17px;
    }

    .auth-logo-img{
        width:32px;
    }

    .auth-card,
    .auth-success{
        padding:24px 20px;
        border-radius:14px;
    }

    .auth-card h1,
    .auth-success h1{
        font-size:22px;
    }

    .auth-sub,
    .auth-success p{
        font-size:13px;
    }

    .form-row{
        grid-template-columns:1fr;
        gap:16px;
    }

    .form-group input{
        padding:12px 14px;
        font-size:16px; /* évite le zoom iOS */
    }

    .auth-btn{
        padding:14px;
    }

    .forgot-link{
        font-size:12px;
    }

}


@media (max-width:420px){

    .auth-page{
        padding:.75rem;
    }

    .auth-card,
    .auth-success{
        padding:20px 16px;
    }

    .auth-card h1,
    .auth-success h1{
        font-size:20px;
    }

    .auth-logo{
        font-size:16px;
    }

    .auth-logo-img{
        width:28px;
    }

    .form-group label{
        font-size:11px;
    }

    .form-group input{
        padding:11px 12px;
        font-size:16px;
    }

    .remember-label{
        font-size:12px;
        align-items:flex-start;
    }

    .auth-btn{
        font-size:14px;
    }

    .auth-switch{
        font-size:12px;
    }

}