/* ================================================
   AUTH PAGES — Login, Register, Forgot Password
   ================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5; color: #1a1a1a; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
}

.auth-wrapper {
    width: 100%; max-width: 440px; padding: 20px;
}

/* Logo */
.auth-logo {
    text-align: center; margin-bottom: 32px;
}
.auth-logo-icon {
    width: 56px; height: 56px; border-radius: 8px; background: #DC2626;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
}
.auth-logo-icon svg { width: 28px; height: 28px; color: #fff; }
.auth-logo h1 {
    font-size: 24px; font-weight: 800; color: #111;
}
.auth-logo p {
    font-size: 14px; color: #888; margin-top: 4px;
}

/* Card */
.auth-card {
    background: #fff; border-radius: 8px; padding: 36px;
    border: 1px solid #eee; box-shadow: 0 4px 24px rgba(0,0,0,.04);
}
.auth-card h2 {
    font-size: 22px; font-weight: 800; color: #111; margin-bottom: 4px;
}
.auth-card .auth-subtitle {
    font-size: 14px; color: #888; margin-bottom: 28px;
}

/* Form */
.auth-form-group { margin-bottom: 20px; }
.auth-form-label {
    font-size: 13px; font-weight: 600; color: #444; margin-bottom: 8px; display: block;
}
.auth-input-wrap { position: relative; }
.auth-input-wrap svg {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; color: #bbb;
}
.auth-form-input {
    width: 100%; padding: 14px 16px 14px 44px; border: 1px solid #e0e0e0;
    border-radius: 8px; font-size: 14px; color: #333; background: #fff;
    outline: none; transition: border-color .2s; font-family: inherit;
}
.auth-form-input:focus { border-color: #DC2626; }
.auth-form-input::placeholder { color: #bbb; }

/* Toggle password */
.auth-toggle-pw {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: #bbb;
    display: flex; align-items: center; justify-content: center;
}
.auth-toggle-pw:hover { color: #666; }

/* Row (for 2 columns) */
.auth-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Checkbox */
.auth-checkbox-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px;
}
.auth-checkbox {
    display: flex; align-items: center; gap: 8px; font-size: 13px; color: #555;
    cursor: pointer;
}
.auth-checkbox input { width: 16px; height: 16px; accent-color: #DC2626; cursor: pointer; }
.auth-link {
    font-size: 13px; color: #DC2626; font-weight: 600; transition: color .2s;
}
.auth-link:hover { color: #b91c1c; text-decoration: underline; }

/* Submit button */
.auth-btn {
    width: 100%; padding: 14px; border-radius: 8px; background: #DC2626; color: #fff;
    font-size: 15px; font-weight: 700; border: none; cursor: pointer;
    transition: background .2s; box-shadow: 0 2px 12px rgba(220,38,38,.25);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-btn:hover { background: #b91c1c; }
.auth-btn svg { width: 18px; height: 18px; }

/* Divider */
.auth-divider {
    display: flex; align-items: center; gap: 16px; margin: 24px 0;
    font-size: 12px; color: #bbb; text-transform: uppercase; letter-spacing: .04em;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: #eee;
}

/* Social buttons */
.auth-social-btns { display: flex; gap: 12px; }
.auth-social-btn {
    flex: 1; padding: 12px; border-radius: 8px; border: 1px solid #e0e0e0;
    background: #fff; font-size: 13px; font-weight: 600; color: #333;
    cursor: pointer; transition: all .2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-social-btn:hover { background: #f5f5f5; border-color: #ccc; }
.auth-social-btn svg { width: 18px; height: 18px; }

/* Footer link */
.auth-footer {
    text-align: center; margin-top: 24px; font-size: 14px; color: #888;
}
.auth-footer a { color: #DC2626; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* Alert */
.auth-alert {
    padding: 12px 16px; border-radius: 8px; margin-bottom: 20px;
    font-size: 13px; font-weight: 500;
}
.auth-alert.success { background: #dcfce7; color: #16a34a; border: 1px solid #bbf7d0; }
.auth-alert.error { background: #fee2e2; color: #DC2626; border: 1px solid #fecaca; }
.auth-alert.info { background: #dbeafe; color: #2563eb; border: 1px solid #bfdbfe; }

/* Back link */
.auth-back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: #888; margin-bottom: 20px; transition: color .2s;
}
.auth-back:hover { color: #333; }
.auth-back svg { width: 16px; height: 16px; }

/* Responsive */
@media (max-width: 480px) {
    .auth-card { padding: 24px; }
    .auth-form-row { grid-template-columns: 1fr; }
    .auth-social-btns { flex-direction: column; }
}
