/* ── Auth pages (Login, Register, Profile) ── */

.auth-page {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: #f4f8fc;
}

.auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.09);
    padding: 40px 36px;
    width: 100%;
    max-width: 440px;
}

.auth-card--wide {
    max-width: 620px;
}

.auth-logo {
    font-family: 'Purple Purse', cursive;
    font-size: 32px;
    background: linear-gradient(to right, #0095D9, #003F5C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    color: #191C1F;
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 13px;
    color: #77878F;
    margin-bottom: 28px;
}

.auth-error {
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    color: #dc2626;
    margin-bottom: 18px;
}

.auth-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    color: #16a34a;
    margin-bottom: 18px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.auth-label {
    font-size: 13px;
    font-weight: 600;
    color: #475156;
    margin-bottom: 6px;
}

.auth-input {
    height: 42px;
    border: 1.5px solid #E4E7E9;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 14px;
    font-family: 'Public Sans', sans-serif;
    color: #191C1F;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.auth-input:focus {
    border-color: #0095D9;
    box-shadow: 0 0 0 3px rgba(0,149,217,.12);
}

.auth-field-error {
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
}

.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475156;
    margin-bottom: 20px;
}

.auth-remember input[type="checkbox"] {
    accent-color: #0095D9;
    width: 15px;
    height: 15px;
}

.auth-btn {
    display: block;
    width: 100%;
    height: 46px;
    background: linear-gradient(to right, #0095D9, #003F5C);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Public Sans', sans-serif;
    cursor: pointer;
    transition: opacity .2s;
    text-align: center;
    line-height: 46px;
    text-decoration: none;
    margin-top: 4px;
}

.auth-btn:hover {
    opacity: 0.88;
    color: #fff;
}

.auth-btn--outline {
    background: transparent;
    border: 1.5px solid #0095D9;
    color: #0095D9;
    line-height: 42px;
    height: 44px;
}

.auth-btn--outline:hover {
    background: #f0f9ff;
    opacity: 1;
    color: #003F5C;
}

.auth-footer-links {
    text-align: center;
    font-size: 13px;
    color: #77878F;
    margin-top: 20px;
}

.auth-footer-links a {
    color: #0095D9;
    font-weight: 600;
}

/* ── Dealer section ── */
.dealer-section {
    border: 1.5px solid #E4E7E9;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
    background: #fafcff;
}

.dealer-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.dealer-toggle input[type="checkbox"] {
    accent-color: #0095D9;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.dealer-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dealer-toggle-text strong {
    font-size: 14px;
    color: #191C1F;
}

.dealer-toggle-sub {
    font-size: 12px;
    color: #77878F;
}

.dealer-fields {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #E4E7E9;
}

.dealer-notice {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    color: #92400e;
    margin-top: 12px;
}

.dealer-notice--success {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

/* ── Profile page ── */
.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0095D9, #003F5C);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: #191C1F;
    margin-bottom: 2px;
}

.profile-email {
    font-size: 13px;
    color: #77878F;
    display: block;
}

.profile-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 4px;
}

.profile-badge--dealer {
    background: #f59e0b;
    color: #fff;
}

.profile-badge--pending {
    background: #dbeafe;
    color: #1d4ed8;
}

.profile-badge--rejected {
    background: #fee2e2;
    color: #dc2626;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.profile-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-info-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #ADB7BC;
}

.profile-info-value {
    font-size: 14px;
    color: #191C1F;
}

.profile-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .auth-card { padding: 28px 20px; }
    .auth-grid-2 { grid-template-columns: 1fr; }
    .profile-info-grid { grid-template-columns: 1fr; }
}
