/* ==========================================================================
   Doccit Auth Design System
   Extracted from HRD.cshtml for consistent styling across all pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
    /* Primary palette */
    --primary: #008193;
    --primary-dark: #006978;
    --primary-light: #00a5b8;

    /* Accent palette */
    --accent: #f7941d;
    --accent-hover: #e8850a;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafb;
    --gray-100: #f1f5f7;
    --gray-200: #e2e8ec;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --gray-800: #1e293b;

    /* Semantic colors */
    --error: #ef4444;
    --error-light: #fef2f2;
    --success: #10b981;
    --success-light: #ecfdf5;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --info: #3b82f6;
    --info-light: #eff6ff;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* --------------------------------------------------------------------------
   Base Reset & Typography
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Full Page Background (for login-style pages)
   -------------------------------------------------------------------------- */
.auth-page-bg {
    min-height: 100vh;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.auth-page-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(247, 148, 29, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(0, 165, 184, 0.15) 0%, transparent 50%);
    animation: bgPulse 15s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

/* Background shapes */
.bg-shape {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    pointer-events: none;
}

.bg-shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.bg-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -80px;
    animation: float 25s ease-in-out infinite reverse;
}

.bg-shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    border-color: rgba(247, 148, 29, 0.1);
    animation: float 18s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* --------------------------------------------------------------------------
   App Layout (for authenticated pages)
   -------------------------------------------------------------------------- */
.auth-app {
    min-height: 100vh;
    background: var(--gray-50);
}

.auth-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.auth-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.5rem;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--gray-800);
    font-weight: 700;
    font-size: 1.1rem;
}

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

.auth-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.auth-nav-link:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.auth-nav-link.active {
    background: var(--primary);
    color: var(--white);
}

.auth-nav-link svg {
    width: 18px;
    height: 18px;
}

.auth-user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.auth-user-menu:hover {
    background: var(--gray-100);
}

.auth-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.auth-user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-800);
}

.auth-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* --------------------------------------------------------------------------
   Card Component
   -------------------------------------------------------------------------- */
.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    animation: cardEnter 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-card-centered {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.auth-card-wide {
    max-width: 800px;
}

@keyframes cardEnter {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card-icon svg {
    width: 28px;
    height: 28px;
}

.auth-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.auth-card-subtitle {
    font-size: 0.9rem;
    color: var(--gray-400);
}

.auth-card-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.auth-card-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.auth-card-section:first-child {
    padding-top: 0;
}

.auth-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-section-title svg {
    width: 16px;
    height: 16px;
}

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

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    outline: none;
}

.form-input-icon {
    padding-left: 2.75rem;
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-input:hover {
    border-color: var(--gray-400);
}

.form-input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 129, 147, 0.1);
}

.form-input:disabled,
.form-input:read-only {
    background: var(--gray-100);
    color: var(--gray-600);
    cursor: not-allowed;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--gray-400);
    transition: color var(--transition-normal);
    pointer-events: none;
}

.form-input:focus + .input-icon,
.form-input:focus ~ .input-icon {
    color: var(--primary);
}

.form-input.error {
    border-color: var(--error);
    background: var(--error-light);
}

.form-input.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    outline: none;
    text-decoration: none;
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(247, 148, 29, 0.35);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 148, 29, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 129, 147, 0.35);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 129, 147, 0.4);
}

.btn-outline {
    background: var(--white);
    color: var(--gray-800);
    border: 2px solid var(--gray-200);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
    box-shadow: none;
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.btn-danger {
    background: var(--error);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn-loading {
    pointer-events: none;
    opacity: 0.85;
    position: relative;
}

.btn-loading .btn-text {
    visibility: hidden;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Alerts & Messages
   -------------------------------------------------------------------------- */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: alertEnter 0.3s ease;
}

@keyframes alertEnter {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.alert-success {
    background: var(--success-light);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: var(--error-light);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: var(--warning-light);
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: var(--info-light);
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* --------------------------------------------------------------------------
   Divider
   -------------------------------------------------------------------------- */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.75rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.divider span {
    font-size: 0.8rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Social / Provider Buttons
   -------------------------------------------------------------------------- */
.provider-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.provider-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.provider-item:hover {
    border-color: var(--gray-400);
}

.provider-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.provider-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.provider-icon svg {
    width: 24px;
    height: 24px;
}

.provider-name {
    font-weight: 600;
    color: var(--gray-800);
}

.provider-status {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.provider-status.connected {
    color: var(--success);
}

.provider-actions {
    display: flex;
    gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   Data Display (for Profile info)
   -------------------------------------------------------------------------- */
.info-grid {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 1rem;
    color: var(--gray-800);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Page Title
   -------------------------------------------------------------------------- */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--gray-400);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .auth-header-inner {
        flex-wrap: wrap;
    }

    .auth-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        padding-top: 0.75rem;
        border-top: 1px solid var(--gray-200);
        margin-top: 0.75rem;
    }

    .auth-card {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }

    .page-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-nav-link span {
        display: none;
    }

    .auth-user-name {
        display: none;
    }

    .provider-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .provider-actions {
        justify-content: flex-end;
    }
}

/* --------------------------------------------------------------------------
   Login Container
   -------------------------------------------------------------------------- */
.login-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: cardEnter 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-bottom: 1.75rem;
}

/* Centered text variants */
.login-title.text-center,
.login-subtitle.text-center {
    text-align: center;
}

.login-subtitle.text-center {
    margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */
.logo-wrapper {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    animation: logoEnter 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards;
}

@keyframes logoEnter {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* --------------------------------------------------------------------------
   Back Link
   -------------------------------------------------------------------------- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-400);
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color var(--transition-normal);
}

.back-link:hover {
    color: var(--primary);
}

.back-link svg {
    width: 16px;
    height: 16px;
}

/* --------------------------------------------------------------------------
   User Info Card
   -------------------------------------------------------------------------- */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: 1.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 0.8rem;
    color: var(--gray-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   Password Toggle
   -------------------------------------------------------------------------- */
.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
}

.toggle-password:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.toggle-password svg {
    width: 20px;
    height: 20px;
}

/* Form input with right padding for toggle button */
.form-input-toggle {
    padding-right: 2.75rem;
}

/* --------------------------------------------------------------------------
   Form Footer (Remember Me + Forgot Password)
   -------------------------------------------------------------------------- */
.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.remember-me input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.remember-me span {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.forgot-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Error Message
   -------------------------------------------------------------------------- */
.error-message {
    display: none;
    font-size: 0.8rem;
    color: var(--error);
    margin-top: 0.5rem;
    padding-left: 0.25rem;
}

.error-message.show {
    display: block;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* --------------------------------------------------------------------------
   MFA Section
   -------------------------------------------------------------------------- */
.mfa-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.mfa-section.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mfa-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0, 129, 147, 0.08), rgba(0, 165, 184, 0.05));
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}

.mfa-info-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.mfa-info p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.mfa-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.mfa-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    outline: none;
}

.mfa-input:hover {
    border-color: var(--gray-400);
}

.mfa-input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 129, 147, 0.1);
}

.mfa-input.filled {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.mfa-input.error {
    border-color: var(--error);
    background: var(--error-light);
    animation: shake 0.4s ease;
}

.resend-code {
    text-align: center;
    margin-top: 1rem;
}

.resend-code button {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
}

.resend-code button:hover {
    text-decoration: underline;
}

.resend-code button:disabled {
    color: var(--gray-400);
    cursor: not-allowed;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Social Buttons
   -------------------------------------------------------------------------- */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-social {
    background: var(--white);
    color: var(--gray-800);
    border: 2px solid var(--gray-200);
    box-shadow: none;
}

.btn-social:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-social svg {
    width: 20px;
    height: 20px;
}

/* --------------------------------------------------------------------------
   Login Footer
   -------------------------------------------------------------------------- */
.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.login-footer p {
    font-size: 0.8rem;
    color: var(--gray-400);
    line-height: 1.6;
}

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

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

/* --------------------------------------------------------------------------
   Login Page Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .login-title {
        font-size: 1.35rem;
    }

    .mfa-input {
        width: 42px;
        height: 50px;
        font-size: 1.1rem;
    }
}

/* --------------------------------------------------------------------------
   Confirmation Modal
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.show .modal-dialog {
    transform: scale(1) translateY(0);
}

.modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.modal-icon.danger {
    background: var(--error-light);
    color: var(--error);
}

.modal-icon.warning {
    background: var(--warning-light);
    color: var(--warning);
}

.modal-icon.info {
    background: var(--info-light);
    color: var(--info);
}

.modal-icon svg {
    width: 28px;
    height: 28px;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    text-align: center;
    margin-bottom: 0.5rem;
}

.modal-message {
    font-size: 0.9rem;
    color: var(--gray-600);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
}

.modal-actions .btn {
    flex: 1;
}

@media (max-width: 480px) {
    .modal-dialog {
        padding: 1.5rem;
    }

    .modal-actions {
        flex-direction: column-reverse;
    }
}
