/* ========================================
   Auth Pages - Login / Registro
   VehiVenta
   ======================================== */

.auth-page {
    min-height: calc(100vh - 200px);
    padding: 50px 16px;
    background: #f5f6f8;
}

.auth-wrapper {
    max-width: 440px;
    margin: 0 auto;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    overflow: hidden;
    margin-bottom: 30px;
}

.auth-card *,
.auth-card *::before,
.auth-card *::after {
    box-sizing: border-box;
}

.auth-header {
    text-align: center;
    padding: 32px 24px 20px;
}

.auth-logo {
    height: 40px;
    margin-bottom: 20px;
}

.auth-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fef2f2;
    color: #c72931;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.4em;
}

.auth-header h1 {
    font-size: 1.5em;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px;
}

.auth-header p {
    color: #888;
    font-size: .9em;
    margin: 0;
}

/* --- Social buttons --- */
.auth-social {
    padding: 0 24px;
}

.auth-btn-facebook {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: #1877f2;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: .95em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: background .15s;
}

.auth-btn-facebook:hover,
.auth-btn-facebook:focus,
.auth-btn-facebook:active,
.auth-btn-facebook:visited {
    background: #166fe5;
    color: #fff !important;
    text-decoration: none;
}

.auth-btn-facebook i {
    font-size: 1.2em;
}

/* --- Divider --- */
.auth-divider {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    gap: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}

.auth-divider span {
    font-size: .82em;
    color: #999;
    white-space: nowrap;
}

/* --- Form --- */
.auth-form {
    padding: 0 24px 8px;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-size: .82em;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}

.auth-field label i {
    color: #aaa;
    margin-right: 4px;
    width: 14px;
    text-align: center;
}

.auth-input {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: .92em;
    color: #333;
    background: #fafafa;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
    -webkit-appearance: none;
}

.auth-input:focus {
    outline: none;
    border-color: #c72931;
    box-shadow: 0 0 0 3px rgba(199,41,49,.08);
    background: #fff;
}

.auth-input::placeholder {
    color: #bbb;
}

.auth-field-row {
    display: flex;
    gap: 12px;
}

.auth-field-half {
    flex: 1;
}

/* --- Options row --- */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: .85em;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    cursor: pointer;
    font-weight: 400;
}

.auth-checkbox input[type="checkbox"] {
    accent-color: #c72931;
    width: 16px;
    height: 16px;
}

.auth-link {
    color: #c72931;
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
    color: #a22;
}

/* --- Turnstile --- */
.auth-turnstile {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

/* --- Submit button --- */
.auth-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: #c72931;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    font-family: inherit;
}

.auth-btn-submit:hover {
    background: #a8222a;
}

/* --- Footer --- */
.auth-footer {
    text-align: center;
    padding: 20px 24px 24px;
    border-top: 1px solid #f0f0f0;
}

.auth-footer p {
    margin: 0 0 6px;
    font-size: .9em;
    color: #666;
}

.auth-footer a {
    color: #c72931;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-footer-secondary {
    font-size: .82em !important;
    color: #999 !important;
    margin-top: 8px !important;
}

.auth-footer-secondary a {
    font-weight: 500;
}

/* --- Alerts --- */
.auth-card .up-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: .9em;
    margin: 0 24px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-card .up-alert i { font-size: 1.1em; flex-shrink: 0; }

.auth-card .up-alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.auth-card .up-alert-danger {
    background: #fef2f2;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.auth-card .up-alert-warning {
    background: #fff8e1;
    color: #e65100;
    border: 1px solid #ffe0b2;
}

/* --- Password rules --- */
.auth-password-rules {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 8px;
}

.auth-password-rules small {
    color: #666;
    font-weight: 600;
}

.auth-password-rules ul {
    margin: 6px 0 0;
    padding-left: 20px;
    font-size: .85em;
    color: #777;
}

.auth-password-rules ul li {
    margin-bottom: 2px;
}

.auth-field-error {
    display: block;
    color: #d32f2f;
    font-size: .8em;
    margin-top: 4px;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .auth-page {
        padding: 20px 10px;
    }
    .auth-card {
        border-radius: 12px;
    }
    .auth-header {
        padding: 24px 20px 16px;
    }
    .auth-social,
    .auth-form,
    .auth-divider {
        padding-left: 20px;
        padding-right: 20px;
    }
    .auth-footer {
        padding: 16px 20px 20px;
    }
    .auth-field-row {
        flex-direction: column;
        gap: 0;
    }
}
