/* ================================================================
   Strážce Zdraví - Identity Server Styles
   CSS Variables + Custom Bootstrap Theme
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* ================================================================
   CSS Variables - Themes
   ================================================================ */

:root, .theme-teal {
    /* Healthcare Trust Palette - Teal (Default) */
    --hid-background: #f7f9fc;
    --hid-background-hsl: 210 40% 98%;
    --hid-foreground: #1a2332;
    --hid-foreground-hsl: 210 40% 11%;

    --hid-card: #ffffff;
    --hid-card-foreground: #1a2332;

    --hid-primary: #1f9d8a;
    --hid-primary-hsl: 173 58% 39%;
    --hid-primary-foreground: #ffffff;
    --hid-primary-hover: #1a8a79;

    --hid-secondary: #f3f4f6;
    --hid-secondary-foreground: #374151;

    --hid-muted: #f3f4f6;
    --hid-muted-foreground: #6b7280;

    --hid-accent: #d1f5f0;
    --hid-accent-foreground: #115e52;

    --hid-destructive: #ef4444;
    --hid-destructive-foreground: #ffffff;

    --hid-success: #22c55e;
    --hid-success-foreground: #ffffff;

    --hid-warning: #f59e0b;
    --hid-warning-foreground: #ffffff;

    --hid-border: #e5e7eb;
    --hid-input-border: #d1d5db;
    --hid-ring: #1f9d8a;

    --hid-radius: 0.75rem;
    --hid-radius-lg: 1.5rem;

    /* Gradients */
    --hid-gradient-primary: linear-gradient(135deg, #1f9d8a 0%, #2b8fa8 100%);
    --hid-gradient-hero: linear-gradient(180deg, #f7f9fc 0%, #e6f7f5 100%);
    --hid-gradient-security: linear-gradient(135deg, #1f9d8a 0%, #2563a8 100%);

    /* Shadows */
    --hid-shadow-sm: 0 1px 2px 0 rgba(26, 35, 50, 0.03);
    --hid-shadow-md: 0 4px 6px -1px rgba(26, 35, 50, 0.05), 0 2px 4px -2px rgba(26, 35, 50, 0.05);
    --hid-shadow-lg: 0 10px 15px -3px rgba(26, 35, 50, 0.08), 0 4px 6px -4px rgba(26, 35, 50, 0.05);
    --hid-shadow-xl: 0 20px 25px -5px rgba(26, 35, 50, 0.1), 0 8px 10px -6px rgba(26, 35, 50, 0.08);
    --hid-shadow-glow: 0 0 40px -10px rgba(31, 157, 138, 0.3);
}

/* Blue Theme */
.theme-blue {
    --hid-primary: #3b82f6;
    --hid-primary-hsl: 221 83% 53%;
    --hid-primary-hover: #2563eb;
    --hid-accent: #dbeafe;
    --hid-accent-foreground: #1e40af;
    --hid-ring: #3b82f6;
    --hid-gradient-primary: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    --hid-gradient-hero: linear-gradient(180deg, #f7f9fc 0%, #eff6ff 100%);
    --hid-gradient-security: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    --hid-shadow-glow: 0 0 40px -10px rgba(59, 130, 246, 0.3);
}

/* Purple Theme */
.theme-purple {
    --hid-primary: #8b5cf6;
    --hid-primary-hsl: 262 83% 58%;
    --hid-primary-hover: #7c3aed;
    --hid-accent: #ede9fe;
    --hid-accent-foreground: #5b21b6;
    --hid-ring: #8b5cf6;
    --hid-gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    --hid-gradient-hero: linear-gradient(180deg, #f7f9fc 0%, #f5f3ff 100%);
    --hid-gradient-security: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    --hid-shadow-glow: 0 0 40px -10px rgba(139, 92, 246, 0.3);
}

/* Emerald Theme */
.theme-emerald {
    --hid-primary: #10b981;
    --hid-primary-hsl: 160 84% 39%;
    --hid-primary-hover: #059669;
    --hid-accent: #d1fae5;
    --hid-accent-foreground: #065f46;
    --hid-ring: #10b981;
    --hid-gradient-primary: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    --hid-gradient-hero: linear-gradient(180deg, #f7f9fc 0%, #ecfdf5 100%);
    --hid-gradient-security: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    --hid-shadow-glow: 0 0 40px -10px rgba(16, 185, 129, 0.3);
}

/* Green Theme (matches ClientWeb green theme) */
.theme-green {
    --hid-background: #f8faf8;
    --hid-background-hsl: 138 20% 98%;
    --hid-foreground: #172617;
    --hid-foreground-hsl: 140 40% 11%;

    --hid-card: #ffffff;
    --hid-card-foreground: #172617;

    --hid-primary: #10b981;
    --hid-primary-hsl: 160 84% 39%;
    --hid-primary-foreground: #ffffff;
    --hid-primary-hover: #059669;

    --hid-secondary: #f3f5f3;
    --hid-secondary-foreground: #374137;

    --hid-muted: #f0f2f0;
    --hid-muted-foreground: #5f6b5f;

    --hid-accent: #fce7f3;
    --hid-accent-foreground: #9f1239;

    --hid-destructive: #ef4444;
    --hid-destructive-foreground: #ffffff;

    --hid-success: #22c55e;
    --hid-success-foreground: #ffffff;

    --hid-warning: #f59e0b;
    --hid-warning-foreground: #ffffff;

    --hid-border: #e2e5e2;
    --hid-input-border: #d1d5d1;
    --hid-ring: #10b981;

    --hid-gradient-primary: linear-gradient(135deg, #10b981 0%, #22c55e 100%);
    --hid-gradient-hero: linear-gradient(180deg, #f8faf8 0%, #ecfdf5 100%);
    --hid-gradient-security: linear-gradient(135deg, #10b981 0%, #22c55e 100%);
    --hid-shadow-glow: 0 0 40px -10px rgba(16, 185, 129, 0.3);
}

/* Rose Theme */
.theme-rose {
    --hid-primary: #f43f5e;
    --hid-primary-hsl: 350 89% 60%;
    --hid-primary-hover: #e11d48;
    --hid-accent: #ffe4e6;
    --hid-accent-foreground: #9f1239;
    --hid-ring: #f43f5e;
    --hid-gradient-primary: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    --hid-gradient-hero: linear-gradient(180deg, #f7f9fc 0%, #fff1f2 100%);
    --hid-gradient-security: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    --hid-shadow-glow: 0 0 40px -10px rgba(244, 63, 94, 0.3);
}

/* Dark Mode */
.dark {
    --hid-background: #0f1419;
    --hid-background-hsl: 210 40% 6%;
    --hid-foreground: #f7f9fc;
    --hid-foreground-hsl: 210 20% 98%;

    --hid-card: #1a2332;
    --hid-card-foreground: #f7f9fc;

    --hid-primary: #2dd4bf;
    --hid-primary-hover: #14b8a6;

    --hid-secondary: #1f2937;
    --hid-secondary-foreground: #e5e7eb;

    --hid-muted: #1f2937;
    --hid-muted-foreground: #9ca3af;

    --hid-accent: #134e4a;
    --hid-accent-foreground: #99f6e4;

    --hid-border: #374151;
    --hid-input-border: #4b5563;

    --hid-gradient-hero: linear-gradient(180deg, #0f1419 0%, #111827 100%);
}

/* ================================================================
   Base Styles
   ================================================================ */

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--hid-background);
    color: var(--hid-foreground);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.font-display {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* ================================================================
   Layout Components
   ================================================================ */

/* Header / Navbar */
.hid-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hid-border);
    transition: all 0.3s ease;
}

.dark .hid-header {
    background: rgba(26, 35, 50, 0.85);
}

.hid-header .navbar-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--hid-foreground);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.hid-header .navbar-brand .brand-accent {
    color: var(--hid-primary);
}

.hid-logo-icon {
    background: var(--hid-gradient-security);
    padding: 0.2rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--hid-shadow-glow);
}

.hid-logo-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: white;
}

.hid-header .nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--hid-muted-foreground);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.hid-header .nav-link:hover,
.hid-header .nav-link.active {
    color: var(--hid-primary);
    background: var(--hid-accent);
}

/* Footer */
.hid-footer {
    background: var(--hid-secondary);
    border-top: 1px solid var(--hid-border);
    padding: 3rem 0 2rem;
    margin-top: auto;
}

.hid-footer .footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--hid-foreground);
    text-decoration: none;
    margin-bottom: 1rem;
}

.hid-footer .footer-brand .brand-accent {
    color: var(--hid-primary);
}

.hid-footer p {
    color: var(--hid-muted-foreground);
    font-size: 0.875rem;
}

.hid-footer h5 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    color: var(--hid-foreground);
    margin-bottom: 1rem;
}

.hid-footer a {
    color: var(--hid-muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.hid-footer a:hover {
    color: var(--hid-primary);
}

.footer-badges {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--hid-muted-foreground);
}

.footer-badge svg {
    width: 0.875rem;
    height: 0.875rem;
}

.footer-bottom {
    border-top: 1px solid var(--hid-border);
    margin-top: 2rem;
    padding-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.75rem;
}

/* ================================================================
   Auth Card (Login/Register wrapper)
   ================================================================ */

.hid-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--hid-gradient-hero);
    position: relative;
    overflow: hidden;
}

.hid-auth-bg-pattern {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hid-auth-bg-pattern::before {
    content: '';
    position: absolute;
    top: 25%;
    left: -5rem;
    width: 18rem;
    height: 18rem;
    background: var(--hid-primary);
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(60px);
}

.hid-auth-bg-pattern::after {
    content: '';
    position: absolute;
    bottom: 25%;
    right: -5rem;
    width: 24rem;
    height: 24rem;
    background: var(--hid-primary);
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(60px);
}

.hid-auth-container {
    position: relative;
    width: 100%;
    max-width: 28rem;
    animation: fadeIn 0.6s ease-out;
}

.hid-auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    text-decoration: none;
}

.hid-auth-logo .logo-icon {
    background: var(--hid-gradient-security);
    padding: 0.35rem;
    border-radius: 1rem;
    box-shadow: var(--hid-shadow-glow);
    display: flex;
}

.hid-auth-logo .logo-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: white;
}

.hid-auth-logo .logo-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--hid-foreground);
}

.hid-auth-logo .logo-text .accent {
    color: var(--hid-primary);
}

.hid-auth-card {
    background: var(--hid-card);
    border-radius: var(--hid-radius-lg);
    box-shadow: var(--hid-shadow-xl);
    border: 1px solid var(--hid-border);
    padding: 2rem;
}

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

.hid-auth-header h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--hid-foreground);
    margin-bottom: 0.5rem;
}

.hid-auth-header p {
    color: var(--hid-muted-foreground);
    font-size: 0.875rem;
    margin: 0;
}

.hid-auth-footer-link {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hid-border);
    text-align: center;
}

.hid-auth-footer-link p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--hid-muted-foreground);
}

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

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

.hid-security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: var(--hid-muted-foreground);
}

.hid-security-badge svg {
    width: 1rem;
    height: 1rem;
}

/* ================================================================
   Form Controls
   ================================================================ */

.hid-form-group {
    margin-bottom: 1.25rem;
}

.hid-form-group label,
.hid-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--hid-foreground);
    margin-bottom: 0.5rem;
}

.hid-input-wrapper {
    position: relative;
}

.hid-input-wrapper .input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: var(--hid-muted-foreground);
    pointer-events: none;
}

.hid-input-wrapper .input-icon-right {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--hid-muted-foreground);
    transition: color 0.2s;
}

.hid-input-wrapper .input-icon-right:hover {
    color: var(--hid-foreground);
}

.hid-input-wrapper .input-icon-right svg {
    width: 1.25rem;
    height: 1.25rem;
}

.hid-input,
.form-control.hid-input {
    width: 100%;
    height: 3rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--hid-foreground);
    background: var(--hid-card);
    border: 1px solid var(--hid-input-border);
    border-radius: var(--hid-radius);
    transition: all 0.2s ease;
}

.hid-input-wrapper .hid-input.has-icon-left {
    padding-left: 2.75rem;
}

.hid-input-wrapper .hid-input.has-icon-right {
    padding-right: 2.75rem;
}

.hid-input:focus,
.form-control.hid-input:focus {
    outline: none;
    border-color: var(--hid-primary);
    box-shadow: 0 0 0 3px rgba(31, 157, 138, 0.15);
}

.theme-blue .hid-input:focus { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.theme-purple .hid-input:focus { box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15); }
.theme-emerald .hid-input:focus { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15); }
.theme-green .hid-input:focus { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15); }
.theme-rose .hid-input:focus { box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15); }

.hid-input::placeholder {
    color: var(--hid-muted-foreground);
}

/* Checkbox */
.hid-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hid-checkbox {
    width: 1rem;
    height: 1rem;
    border: 1px solid var(--hid-input-border);
    border-radius: 0.25rem;
    cursor: pointer;
    accent-color: var(--hid-primary);
}

.hid-checkbox-label {
    font-size: 0.875rem;
    color: var(--hid-muted-foreground);
    cursor: pointer;
}

/* Form text/help */
.hid-form-text {
    font-size: 0.75rem;
    color: var(--hid-muted-foreground);
    margin-top: 0.375rem;
}

/* Validation */
.text-danger,
.field-validation-error {
    color: var(--hid-destructive) !important;
    font-size: 0.75rem;
    margin-top: 0.375rem;
    display: block;
}

.validation-summary-errors {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--hid-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--hid-destructive);
    font-size: 0.875rem;
}

/* ================================================================
   Buttons
   ================================================================ */

.hid-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--hid-radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.hid-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hid-btn-primary,
.btn-primary.hid-btn {
    background: var(--hid-gradient-primary);
    color: var(--hid-primary-foreground);
    box-shadow: var(--hid-shadow-md);
}

.hid-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--hid-shadow-lg);
}

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

.hid-btn-secondary {
    background: var(--hid-secondary);
    color: var(--hid-secondary-foreground);
    border: 1px solid var(--hid-border);
}

.hid-btn-secondary:hover:not(:disabled) {
    background: var(--hid-muted);
}

.hid-btn-outline {
    background: transparent;
    color: var(--hid-primary);
    border: 1px solid var(--hid-primary);
}

.hid-btn-outline:hover:not(:disabled) {
    background: var(--hid-accent);
}

.hid-btn-ghost {
    background: transparent;
    color: var(--hid-muted-foreground);
}

.hid-btn-ghost:hover:not(:disabled) {
    background: var(--hid-muted);
    color: var(--hid-foreground);
}

.hid-btn-danger {
    background: var(--hid-destructive);
    color: var(--hid-destructive-foreground);
}

.hid-btn-danger:hover:not(:disabled) {
    opacity: 0.9;
}

.hid-btn-lg {
    height: 3rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.hid-btn-sm {
    height: 2.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.hid-btn-full {
    width: 100%;
}

.hid-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Link buttons */
.hid-link {
    color: var(--hid-primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ================================================================
   Alert / Message Cards
   ================================================================ */

.hid-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--hid-radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.hid-alert svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.hid-alert-content {
    flex: 1;
}

.hid-alert-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.hid-alert p {
    margin: 0;
    font-size: 0.875rem;
}

.hid-alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #15803d;
}

.dark .hid-alert-success {
    color: #86efac;
}

.hid-alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #b91c1c;
}

.dark .hid-alert-danger {
    color: #fca5a5;
}

.hid-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #b45309;
}

.dark .hid-alert-warning {
    color: #fcd34d;
}

.hid-alert-info {
    background: var(--hid-accent);
    border: 1px solid var(--hid-primary);
    color: var(--hid-accent-foreground);
}

/* ================================================================
   Status Card (Confirm email/phone success/error)
   ================================================================ */

.hid-status-card {
    text-align: center;
    padding: 2rem;
}

.hid-status-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.hid-status-icon svg {
    width: 2rem;
    height: 2rem;
}

.hid-status-icon-success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--hid-success);
}

.hid-status-icon-error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--hid-destructive);
}

.hid-status-card h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--hid-foreground);
    margin-bottom: 0.5rem;
}

.hid-status-card p {
    color: var(--hid-muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* ================================================================
   Theme Switcher
   ================================================================ */

.hid-theme-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hid-theme-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.hid-theme-btn:hover {
    transform: scale(1.1);
}

.hid-theme-btn.active {
    border-color: var(--hid-foreground);
}

.hid-theme-btn-teal { background: linear-gradient(135deg, #1f9d8a 0%, #2b8fa8 100%); }
.hid-theme-btn-blue { background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%); }
.hid-theme-btn-purple { background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%); }
.hid-theme-btn-emerald { background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%); }
.hid-theme-btn-green { background: linear-gradient(135deg, #10b981 0%, #22c55e 100%); }
.hid-theme-btn-rose { background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%); }

/* Dark mode toggle */
.hid-dark-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--hid-border);
    background: var(--hid-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.hid-dark-toggle:hover {
    background: var(--hid-muted);
}

.hid-dark-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--hid-foreground);
}

/* ================================================================
   Homepage / Index
   ================================================================ */

.hid-hero {
    min-height: calc(100vh - 4rem);
    display: flex;
    align-items: center;
    background: var(--hid-gradient-hero);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hid-hero-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hid-hero-pattern::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 24rem;
    height: 24rem;
    background: var(--hid-primary);
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(80px);
}

.hid-hero-content {
    position: relative;
    max-width: 42rem;
}

.hid-hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    line-height: 1.1;
    color: var(--hid-foreground);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hid-hero h1 {
        font-size: 3.5rem;
    }
}

.hid-hero h1 .text-gradient {
    background: var(--hid-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hid-hero p {
    font-size: 1.125rem;
    color: var(--hid-muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hid-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hid-hero-shield {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

@media (min-width: 992px) {
    .hid-hero-shield {
        display: block;
    }
}

.hid-hero-shield .shield-icon {
    width: 16rem;
    height: 16rem;
    background: var(--hid-gradient-security);
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--hid-shadow-glow);
    animation: float 6s ease-in-out infinite;
}

.hid-hero-shield .shield-icon svg {
    width: 10rem;
    height: 10rem;
    color: white;
}

/* Feature Cards */
.hid-features {
    padding: 5rem 0;
    background: var(--hid-background);
}

.hid-features h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--hid-foreground);
}

.hid-feature-card {
    background: var(--hid-card);
    border: 1px solid var(--hid-border);
    border-radius: var(--hid-radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
}

.hid-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hid-shadow-lg);
    border-color: var(--hid-primary);
}

.hid-feature-icon {
    width: 3rem;
    height: 3rem;
    background: var(--hid-accent);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.hid-feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--hid-primary);
}

.hid-feature-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--hid-foreground);
    margin-bottom: 0.5rem;
}

.hid-feature-card p {
    color: var(--hid-muted-foreground);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.6;
}

/* ================================================================
   Animations
   ================================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(-10px) translateY(-10px);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out;
}

/* ================================================================
   Utilities
   ================================================================ */

.text-primary { color: var(--hid-primary) !important; }
.text-muted { color: var(--hid-muted-foreground) !important; }
.text-success { color: var(--hid-success) !important; }
.text-danger { color: var(--hid-destructive) !important; }
.text-warning { color: var(--hid-warning) !important; }

.bg-primary { background: var(--hid-primary) !important; }
.bg-card { background: var(--hid-card) !important; }

/* Override Bootstrap focus styles */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(31, 157, 138, 0.15);
    border-color: var(--hid-primary);
}

/* ================================================================
   User Dropdown Menu
   ================================================================ */

.hid-dropdown-menu {
    background: var(--hid-card);
    border: 1px solid var(--hid-border);
    border-radius: var(--hid-radius);
    box-shadow: var(--hid-shadow-lg);
    padding: 0.5rem 0;
    min-width: 200px;
}

.hid-dropdown-header {
    padding: 0.5rem 1rem;
    display: block;
}

.hid-dropdown-header small {
    font-size: 0.75rem;
}

.hid-dropdown-header strong {
    color: var(--hid-foreground);
    font-size: 0.875rem;
}

.hid-dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--hid-foreground);
    transition: all 0.2s ease;
}

.hid-dropdown-item:hover {
    background: var(--hid-muted);
    color: var(--hid-primary);
}

.hid-dropdown-menu .dropdown-divider {
    border-color: var(--hid-border);
    margin: 0.25rem 0;
}

/* Dropdown toggle styling */
.hid-btn.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hid-btn.dropdown-toggle::after {
    margin-left: 0.25rem;
    border-top-color: currentColor;
}

/* ================================================================
   Responsive
   ================================================================ */

@media (max-width: 767.98px) {
    .hid-auth-card {
        padding: 1.5rem;
    }

    .hid-hero h1 {
        font-size: 2rem;
    }

    .hid-features {
        padding: 3rem 0;
    }
}

/* ================================================================
   Homepage - Where Next Section (Portal Cards)
   ================================================================ */

.hid-where-next {
    padding: 4rem 0;
    background: var(--hid-background);
}

.hid-where-next h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--hid-foreground);
}

.hid-portal-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--hid-card);
    border: 1px solid var(--hid-border);
    border-radius: var(--hid-radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
}

.hid-portal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hid-shadow-lg);
    border-color: var(--hid-primary);
}

.hid-portal-icon {
    width: 3rem;
    height: 3rem;
    background: var(--hid-accent);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hid-portal-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--hid-primary);
}

.hid-portal-content {
    flex: 1;
}

.hid-portal-content h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--hid-foreground);
    margin-bottom: 0.25rem;
}

.hid-portal-content p {
    color: var(--hid-muted-foreground);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.hid-portal-arrow {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--hid-muted-foreground);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.hid-portal-card:hover .hid-portal-arrow {
    transform: translateX(4px);
    color: var(--hid-primary);
}

/* ================================================================
   Homepage - Trust Banner
   ================================================================ */

.hid-trust-banner {
    padding: 2rem 0 3rem;
    background: var(--hid-background);
}

.hid-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--hid-accent);
    border-radius: var(--hid-radius);
    color: var(--hid-accent-foreground);
    font-size: 0.875rem;
}

.hid-trust-badge svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ================================================================
   Minimal Footer
   ================================================================ */

.hid-footer-minimal {
    padding: 1.5rem 0;
    background: var(--hid-secondary);
}

.hid-footer-minimal .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.hid-footer-minimal .footer-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.hid-footer-minimal .footer-separator {
    color: var(--hid-muted-foreground);
}

.hid-footer-minimal .footer-provider {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hid-border);
    text-align: center;
}

.hid-footer-minimal .footer-provider p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--hid-muted-foreground);
}

.hid-footer-minimal .footer-provider a {
    color: var(--hid-primary);
}

@media (min-width: 768px) {
    .hid-footer-minimal .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ================================================================
   Auth Logo Text (no accent color span)
   ================================================================ */

.hid-auth-logo .logo-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--hid-foreground);
}
