/* Shared styles for login / signup / pricing / account pages. */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2c3e50 0%, #1a1a1a 100%);
    min-height: 100vh;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 12px;
}

.auth-header h1 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.auth-header p {
    color: #777;
    font-size: 0.9rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: transform 0.1s, box-shadow 0.2s;
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    width: 100%;
    background: #fff;
    color: #555;
    border: 1px solid #ddd;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 8px;
}

.btn-secondary:hover {
    background: #f5f5f5;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: #777;
}

.auth-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

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

.error-message {
    background: #ffe8e8;
    border: 1px solid #f5a3a3;
    color: #c0392b;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    display: none;
}

.error-message.show { display: block; }

.success-message {
    background: #e8f8e8;
    border: 1px solid #a3e0a3;
    color: #1e7e34;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

/* --- pricing page --- */

.pricing-tier {
    text-align: center;
    margin: 20px 0;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
}

.price small {
    font-size: 1rem;
    color: #777;
    font-weight: 400;
}

.feature-list {
    list-style: none;
    margin: 24px 0;
    text-align: left;
    padding: 0 12px;
}

.feature-list li {
    padding: 8px 0;
    color: #555;
}

.feature-list li i {
    color: #27ae60;
    margin-right: 8px;
}

/* --- account page --- */

.account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.account-row:last-child { border-bottom: none; }

.account-row .label { color: #777; }

.account-row .value { font-weight: 600; }

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.active   { background: #e8f8e8; color: #1e7e34; }
.badge.inactive { background: #ffe8e8; color: #c0392b; }
