/* ========== AUTH PAGES (login, signup, forgot-password) ========== */
:root {
    --auth-primary: #6366f1;
    --auth-primary-hover: #4f46e5;
    --auth-dark: #0f172a;
    --auth-text: #334155;
    --auth-text-light: #64748b;
    --auth-border: #e2e8f0;
    --auth-bg: #f8fafc;
    --auth-card-bg: #fff;
    --auth-radius: 16px;
    --auth-shadow: 0 4px 24px rgba(0,0,0,0.06);
    --auth-danger: #ef4444;
    --auth-success: #22c55e;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--auth-bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 60px;
}

.auth-container {
    width: 100%;
    max-width: 600px;
}

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

/* Auth Card */
.auth-card {
    background: var(--auth-card-bg);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow);
    padding: 40px 36px;
}

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

.auth-card-logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--auth-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.auth-card-logo:hover {
    color: var(--auth-primary);
    text-decoration: none;
}

.auth-card-logo-img {
    height: 36px;
    width: auto;
}

.auth-card-logo span {
    color: var(--auth-primary);
}

.auth-card-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--auth-dark);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.auth-card-header p {
    font-size: 14px;
    color: var(--auth-text-light);
    margin: 0;
    line-height: 1.6;
}

/* Form Elements */
.auth-form-group {
    margin-bottom: 18px;
}

.auth-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--auth-dark);
    margin-bottom: 6px;
}

.auth-form-control {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    color: var(--auth-dark);
    background: var(--auth-bg);
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
    box-sizing: border-box;
}

.auth-form-control:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.auth-form-control::placeholder {
    color: #94a3b8;
}

.auth-form-control.has-error {
    border-color: var(--auth-danger);
}

.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.auth-form-select {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    color: var(--auth-dark);
    background: var(--auth-bg);
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.auth-form-select:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

/* Section Labels */
.auth-section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--auth-text-light);
    margin: 24px 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-section-label i {
    font-size: 13px;
    color: var(--auth-primary);
}

/* Buttons */
.auth-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all .25s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.auth-btn-primary {
    background: var(--auth-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99,102,241,0.3);
}

.auth-btn-primary:hover {
    background: var(--auth-primary-hover);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

/* Links */
.auth-link {
    font-size: 13px;
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    color: var(--auth-primary-hover);
    text-decoration: underline;
}

.auth-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.auth-footer-links {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--auth-text-light);
}

.auth-footer-links a {
    color: var(--auth-primary);
    font-weight: 600;
    text-decoration: none;
}

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

/* Messages */
.auth-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.5;
}

.auth-alert-error {
    background: #fef2f2;
    color: var(--auth-danger);
    border: 1px solid #fecaca;
}

.auth-alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Service highlights */
.auth-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--auth-text-light);
    font-weight: 500;
}

.auth-feature i {
    color: var(--auth-primary);
    font-size: 13px;
}

/* Signup disabled banner */
.auth-disabled-banner {
    text-align: center;
    padding: 20px;
}

.auth-disabled-banner h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--auth-dark);
    margin: 0 0 10px;
}

.auth-disabled-banner p {
    font-size: 14px;
    color: var(--auth-text-light);
    line-height: 1.7;
    margin: 0;
}

/* Validation errors (jQuery validate compat) */
.auth-card .help-block {
    font-size: 12px;
    color: var(--auth-danger);
    margin-top: 4px;
    display: block;
}

.auth-card .has-error .auth-form-control,
.auth-card .has-error .auth-form-select {
    border-color: var(--auth-danger);
}

/* Responsive */
@media (max-width: 520px) {
    .auth-card { padding: 28px 20px; }
    .auth-form-row { grid-template-columns: 1fr; }
    .auth-wrapper { padding: 80px 16px 40px; }
    .auth-features { gap: 12px; }
}
