/* ============================================
   AUTH PAGES - MODERN DESIGN
   ============================================ */

:root {
    --auth-primary: #4f46e5;
    --auth-primary-hover: #4338ca;
    --auth-primary-light: #eef2ff;
    --auth-success: #10b981;
    --auth-danger: #ef4444;
    --auth-text: #1e293b;
    --auth-text-muted: #64748b;
    --auth-border: #e2e8f0;
    --auth-bg: #f8fafc;
}

* {
    box-sizing: border-box;
}

.auth-page {
    min-height: 100vh;
    font-family: 'DM Sans', -apple-system, sans-serif;
    background: var(--auth-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

/* --- Background decoration --- */
.auth-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.auth-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

.auth-shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--auth-primary) 0%, #6366f1 100%);
    top: -200px;
    right: -200px;
    opacity: 0.08;
}

.auth-shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--auth-success) 0%, #34d399 100%);
    bottom: -100px;
    left: -100px;
    opacity: 0.06;
}

.auth-shape-3 {
    width: 200px;
    height: 200px;
    background: var(--auth-primary);
    top: 50%;
    left: 10%;
    opacity: 0.04;
}

/* --- Wrapper --- */
.auth-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}

/* --- Brand --- */
.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    text-decoration: none;
    color: var(--auth-text);
}

.auth-brand img {
    height: 48px;
    width: auto;
}

.auth-brand span {
    font-size: 1.5rem;
    font-weight: 700;
}

/* --- Card --- */
.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--auth-border);
    overflow: hidden;
}

.auth-card-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--auth-primary) 0%, #6366f1 100%);
    color: #fff;
    text-align: center;
}

.auth-card-header h1 {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 0;
}

.auth-card-header p {
    font-size: 0.9375rem;
    margin: 0.5rem 0 0;
    opacity: 0.9;
}

.auth-card-body {
    padding: 2rem;
}

/* --- Alerts --- */
.auth-alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.auth-alert i {
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.auth-alert-success {
    background: #ecfdf5;
    color: #059669;
}

.auth-alert-danger {
    background: #fef2f2;
    color: #dc2626;
}

.auth-alert-warning {
    background: #fffbeb;
    color: #d97706;
}

.auth-alert ul {
    list-style: none;
    padding: 0;
}

.auth-alert ul li {
    margin-bottom: 0.25rem;
}

.auth-alert ul li:last-child {
    margin-bottom: 0;
}

/* --- Form --- */
.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--auth-text);
    margin-bottom: 0.5rem;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.auth-form input.is-invalid {
    border-color: var(--auth-danger);
}

.auth-form .invalid-feedback {
    display: block;
    font-size: 0.875rem;
    color: var(--auth-danger);
    margin-top: 0.375rem;
}

/* --- Checkbox --- */
.auth-form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.auth-form-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--auth-primary);
}

.auth-form-check label {
    margin: 0;
    font-weight: 400;
}

.auth-form-checks {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* --- Buttons --- */
.auth-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn-primary {
    background: linear-gradient(135deg, var(--auth-primary) 0%, #6366f1 100%);
    color: #fff;
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, var(--auth-primary-hover) 0%, #4f46e5 100%);
    transform: translateY(-1px);
}

.auth-btn-link {
    background: none;
    color: var(--auth-primary);
    text-decoration: none;
    margin-top: 1rem;
}

.auth-btn-link:hover {
    text-decoration: underline;
}

.auth-form-actions {
    margin-top: 1.5rem;
}

.auth-form-actions .auth-btn {
    margin-bottom: 0.5rem;
}

/* --- Links --- */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

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

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

/* --- Footer --- */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--auth-text-muted);
}

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

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

/* --- Verify / Confirm info text --- */
.auth-info-text {
    color: var(--auth-text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.auth-info-text + form {
    margin-top: 1rem;
}

/* --- Input with icon --- */
.auth-input-wrap {
    position: relative;
}

.auth-input-wrap i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-text-muted);
    font-size: 0.9375rem;
}

.auth-input-wrap input {
    padding-left: 2.75rem !important;
}

/* --- Password toggle --- */
.auth-password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--auth-text-muted);
    cursor: pointer;
    padding: 0.25rem;
}

.auth-password-toggle:hover {
    color: var(--auth-primary);
}

.auth-input-wrap.password-field input {
    padding-right: 2.75rem !important;
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .auth-card-body {
        padding: 1.5rem;
    }

    .auth-card-header {
        padding: 1.25rem 1.5rem;
    }
}
