/**
 * Frontend Login & Sign Up pages
 */

.auth-page {
    padding: 50px 0 70px;
    background: #f5f5f5;
    min-height: 70vh;
}

.auth-card {
    max-width: 440px;
    margin: 0 auto;
    background: #fff;
    padding: 40px 36px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.auth-title {
    font-size: 28px;
    color: #333;
    margin: 0 0 8px;
    text-align: center;
}

.auth-subtitle {
    color: #666;
    text-align: center;
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.5;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.12);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    gap: 12px;
    flex-wrap: wrap;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    font-weight: 400;
    margin: 0;
}

.forgot-link {
    font-size: 14px;
    color: #e91e63;
    text-decoration: none;
}

.forgot-link:hover {
    color: #c2185b;
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    padding: 14px;
    background: #e91e63;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.auth-submit:hover {
    background: #c2185b;
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.auth-alert-error {
    background: #fdecea;
    color: #b71c1c;
    border: 1px solid #f5c6cb;
}

.auth-alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #666;
}

.auth-switch a {
    color: #e91e63;
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

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

.signup-notice-box {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 6px;
    padding: 18px 20px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

.signup-notice-box p {
    margin: 0 0 12px;
}

.signup-notice-box p:last-child {
    margin-bottom: 0;
}

.signup-approval-email {
    margin-top: 14px !important;
    padding-top: 14px;
    border-top: 1px solid #ffe082;
}

.signup-approval-email a {
    color: #e91e63;
    font-weight: 600;
    word-break: break-all;
}

.signup-urgent-box {
    background: #f3f9ff;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    padding: 18px 20px;
    margin: 20px 0;
    text-align: center;
}

.signup-urgent-box p {
    margin: 0 0 10px;
    color: #555;
}

.signup-email-link {
    display: inline-block;
    color: #e91e63;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
}

.signup-email-link:hover {
    text-decoration: underline;
}

.signup-urgent-or {
    margin: 14px 0 10px !important;
    color: #777 !important;
    font-size: 14px;
}

.signup-approval-whatsapp {
    margin-top: 14px !important;
    padding-top: 0;
}

.signup-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25d366;
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.signup-whatsapp-btn:hover {
    background: #1da851;
    color: #fff !important;
    text-decoration: none;
}

.signup-approval-whatsapp .signup-whatsapp-btn {
    width: 100%;
    max-width: 320px;
}

.signup-urgent-box .signup-whatsapp-btn {
    margin-top: 4px;
}

/* User dashboard */
.user-dashboard-page {
    padding: 40px 0 60px;
    background: #f5f5f5;
    min-height: 70vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-header h1 {
    margin: 0 0 6px;
    font-size: 28px;
    color: #333;
}

.dashboard-welcome {
    margin: 0;
    color: #666;
}

.dashboard-new-ad {
    width: auto;
    padding: 12px 24px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #e91e63;
    line-height: 1.2;
}

.stat-label {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: #666;
}

.dashboard-listings {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dashboard-listings h2 {
    margin: 0 0 20px;
    font-size: 22px;
    color: #333;
}

.dashboard-table-wrap {
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.dashboard-table th {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #888;
    font-weight: 600;
}

.listing-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-publish {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-pending {
    background: #fff3e0;
    color: #e65100;
}

.status-draft {
    background: #f5f5f5;
    color: #666;
}

.dashboard-link {
    color: #e91e63;
    font-weight: 600;
    text-decoration: none;
}

.dashboard-link:hover {
    text-decoration: underline;
}

.dashboard-muted {
    color: #999;
    font-size: 13px;
}

.dashboard-empty {
    text-align: center;
    padding: 40px 20px;
}

.dashboard-empty p {
    margin-bottom: 20px;
    color: #666;
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-table thead {
        display: none;
    }

    .dashboard-table tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid #eee;
        border-radius: 6px;
        padding: 12px;
    }

    .dashboard-table td {
        display: block;
        border: none;
        padding: 6px 0;
    }

    .dashboard-table td::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #888;
    }
}
