/**
 * commercial.php — page d'identification commerciaux (sans connexion).
 */
.commercial-auth-page {
    margin: 0;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    padding: 20px;
    color: #0f172a;
    font-size: 14px;
}

.commercial-auth-page .card {
    max-width: 420px;
    width: 100%;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 32px;
}

.commercial-auth-page .logo {
    width: 48px;
    height: 48px;
    background: #006EB9;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.commercial-auth-page h1 {
    text-align: center;
    color: #0f172a;
    font-size: 1.125rem;
    margin: 0 0 4px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.commercial-auth-page p.sub {
    text-align: center;
    color: #64748b;
    font-size: 0.8125rem;
    margin: 0 0 24px;
}

.commercial-auth-page label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: #334155;
}

.commercial-auth-page input:not([type="radio"]):not([type="checkbox"]),
.commercial-auth-page select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 14px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.commercial-auth-page input:focus,
.commercial-auth-page select:focus {
    outline: none;
    border-color: #006EB9;
    box-shadow: 0 0 0 3px rgba(0, 110, 185, 0.10);
}

.commercial-auth-page .error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.8125rem;
    margin-bottom: 14px;
}

.commercial-auth-page button[type="submit"] {
    width: 100%;
    padding: 10px 14px;
    background: #006EB9;
    color: #fff;
    border: 1px solid #006EB9;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.commercial-auth-page button[type="submit"]:hover {
    background: #005a99;
    border-color: #005a99;
}

.commercial-auth-page .back {
    text-align: center;
    margin-top: 16px;
    font-size: 0.8125rem;
}

.commercial-auth-page .back a {
    color: #006EB9;
    text-decoration: none;
}

.commercial-auth-page .back a:hover {
    text-decoration: underline;
}

.commercial-auth-page .otp-input {
    text-align: center;
    font-size: 1.75rem;
    letter-spacing: 0.45em;
    font-weight: 600;
    padding: 14px 16px;
    font-variant-numeric: tabular-nums;
}

.commercial-auth-page .info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.8125rem;
    margin-bottom: 14px;
    text-align: center;
}

.commercial-auth-page .meta-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    font-size: 0.8125rem;
}

.commercial-auth-page .meta-actions form {
    margin: 0;
}

.commercial-auth-page .meta-actions button.link-btn {
    background: none;
    border: none;
    color: #006EB9;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
    font-family: inherit;
    text-decoration: underline;
    width: auto;
}

.commercial-auth-page .meta-actions button.link-btn:hover {
    color: #005a99;
    background: none;
}

.commercial-auth-page .meta-actions button.link-btn:disabled {
    color: #94a3b8;
    cursor: not-allowed;
    text-decoration: none;
}
