/* ═══════════════════════════════════════════════════════════════════════════
   AUTH PAGES — Login, Forgot Password, Reset Password
   Uses the same design system as the admin template
   ═══════════════════════════════════════════════════════════════════════════ */

.auth-body {
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(108, 92, 231, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(8, 145, 178, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(219, 39, 119, 0.04) 0%, transparent 50%);
}

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

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.auth-logo .logo-mark {
    width: 42px;
    height: 42px;
    font-size: 16px;
}

.auth-logo .logo-text {
    display: block;
    font-size: 20px;
}

.auth-logo .logo-sub {
    display: block;
    margin-left: 0;
    margin-top: 2px;
    padding: 0;
    background: none;
    border-radius: 0;
}

.auth-header {
    margin-bottom: 24px;
}

.auth-header h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.auth-header p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

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

.auth-form .form-label {
    margin-bottom: 6px;
}

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

.input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.input-with-icon {
    padding-left: 38px !important;
}

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

.auth-alert p {
    margin: 0;
}

.auth-alert-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, 0.15);
}

.auth-alert-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.15);
}

/* Remember me */
.auth-remember {
    margin-bottom: 22px;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.auth-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Links */
.auth-link-sm {
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

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

/* Submit button */
.auth-submit {
    width: 100%;
    justify-content: center;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 20px;
}

.auth-footer p {
    font-size: 11px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROFILE PAGE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.profile-grid > .card:last-child {
    grid-column: 1 / -1;
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.profile-avatar-large {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

/* Alert banners for profile/users pages */
.alert-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, 0.15);
}

.alert-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.15);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FILE DROP ZONE
   ═══════════════════════════════════════════════════════════════════════════ */

.file-drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 2px dashed var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-elevated);
}

.file-drop-zone:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

/* ═══════════════════════════════════════════════════════════════════════════
   USER MANAGEMENT STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    color: white;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   USER DROPDOWN (Topbar)
   ═══════════════════════════════════════════════════════════════════════════ */

.user-dropdown-wrapper {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    z-index: 200;
    display: none;
    animation: slideUp 0.15s ease;
}

.user-dropdown.open {
    display: block;
}

.user-dropdown-info {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.user-dropdown-info .user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-dropdown-info .user-email {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.1s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.user-dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.user-dropdown-item.danger {
    color: var(--danger);
}

.user-dropdown-item.danger:hover {
    background: var(--danger-bg);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 28px 20px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-grid > .card:last-child {
        grid-column: 1;
    }

    /* User management table: horizontal scroll */
    .card-body { overflow-x: auto; }
}
