/* SZABMU Portal Sign-In Production Stylesheet (Static Compiled Utilities & Theme) */

/* ========================================================================= */
/* 1. PREFLIGHT RESET                                                        */
/* ========================================================================= */
*, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #E6DFD3;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: inherit;
}

button, input {
    font-family: inherit;
    font-size: 100%;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

button {
    background-color: transparent;
    background-image: none;
    text-transform: none;
    cursor: pointer;
}

img, svg {
    display: block;
    vertical-align: middle;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================================================= */
/* 2. THEME VARIABLES & CUSTOM COMPONENT STYLES                              */
/* ========================================================================= */
:root {
    --szabmu-maroon: #7B1126;
    --szabmu-maroon-light: #8C152B;
    --szabmu-maroon-dark: #590A1A;
    --szabmu-gold: #C59B27;
    --szabmu-gold-muted: #B48A3E;
    --szabmu-bg: #FBF9F6;
    --szabmu-slate: #141B29;
    --cursor-x: 50%;
    --cursor-y: 50%;
}

body {
    background-color: var(--szabmu-bg);
    color: var(--szabmu-slate);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #7B1126;
    color: #FFFFFF;
}

/* Subtle Architectural & Medical Lattice Grid Background */
.architectural-grid {
    background-image:
        radial-gradient(circle at 18% 18%, rgba(123, 17, 38, 0.045) 0%, transparent 45%),
        radial-gradient(circle at 84% 82%, rgba(197, 155, 39, 0.065) 0%, transparent 48%),
        linear-gradient(to right, rgba(180, 138, 62, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(180, 138, 62, 0.045) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}

/* Interactive Cursor Spotlight Layer (Desktop) */
.spotlight-layer {
    background: radial-gradient(
        620px circle at var(--cursor-x) var(--cursor-y),
        rgba(197, 155, 39, 0.085),
        rgba(123, 17, 38, 0.035) 40%,
        transparent 75%
    );
    transition: opacity 0.3s ease;
}

/* Glassmorphic Card Surface */
.glass-card {
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(230, 223, 211, 0.92);
}

/* Kinetic Animations */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

@keyframes pulseRing {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.32); opacity: 1; }
}

@keyframes dashFlow {
    to { stroke-dashoffset: -48; }
}

@keyframes shimmerSweep {
    0% { transform: translateX(-120%) skewX(-20deg); }
    100% { transform: translateX(220%) skewX(-20deg); }
}

@keyframes ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-float-slow {
    animation: floatSlow 6s ease-in-out infinite;
}

.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.orbital-node {
    transform-box: fill-box;
    transform-origin: center;
    animation: pulseRing 3.8s ease-in-out infinite;
}
.orbital-node-d1 { animation-delay: 1.2s; }
.orbital-node-d2 { animation-delay: 2.4s; }

.dna-strand-flow {
    stroke-dasharray: 6 6;
    animation: dashFlow 5s linear infinite;
}

/* ASP.NET WebForms Compatible Input Fields */
.portal-input {
    width: 100%;
    background-color: rgba(251, 249, 246, 0.85);
    border: 1.5px solid #E2DBD0;
    border-radius: 12px;
    padding: 0.62rem 2.75rem 0.62rem 2.65rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--szabmu-slate);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-input::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

.portal-input:hover {
    border-color: #C9BFA9;
    background-color: #FFFFFF;
}

.portal-input:focus {
    outline: none;
    background-color: #FFFFFF;
    border-color: var(--szabmu-maroon);
    box-shadow: 0 0 0 4px rgba(123, 17, 38, 0.10), 0 2px 8px rgba(197, 155, 39, 0.12);
}

.portal-input.input-error {
    border-color: #DC2626;
    background-color: #FEF2F2;
    box-shadow: 0 0 0 3.5px rgba(220, 38, 38, 0.12);
}

/* Primary Maroon & Gold Accent Button */
.btn-szabmu {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #8C152B 0%, #7B1126 55%, #630C1D 100%);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-szabmu::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: translateX(-140%) skewX(-20deg);
}

.btn-szabmu:hover:not(:disabled) {
    transform: translateY(-1.5px);
    background: linear-gradient(135deg, #981830 0%, #7B1126 50%, #590A1A 100%);
}

.btn-szabmu:hover:not(:disabled)::after {
    animation: shimmerSweep 0.85s ease forwards;
}

.btn-szabmu:active:not(:disabled) {
    transform: translateY(0);
}

/* Pillar Pill Hover Micro-interaction */
.pillar-badge {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-badge:hover {
    transform: translateY(-2px);
    border-color: rgba(197, 155, 39, 0.65);
    background-color: #FFFFFF;
    box-shadow: 0 8px 20px -4px rgba(123, 17, 38, 0.10);
}

/* ========================================================================= */
/* 3. UTILITY CLASSES                                                        */
/* ========================================================================= */

/* Display & Positioning */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { inset: 0px; }
.inset-y-0 { top: 0px; bottom: 0px; }
.left-0 { left: 0px; }
.right-0 { right: 0px; }
.-top-10 { top: -2.5rem; }
.-left-10 { left: -2.5rem; }
.-bottom-12 { bottom: -3rem; }
.-right-12 { right: -3rem; }

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }

.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }
.pointer-events-none { pointer-events: none; }
.select-none { user-select: none; -webkit-user-select: none; }
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }

/* Flex & Grid */
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.col-span-1 { grid-column: span 1 / span 1; }

.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-3\.5 { gap: 0.875rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

/* Sizing */
.w-full { width: 100%; }
.w-1\.5 { width: 0.375rem; }
.w-2 { width: 0.5rem; }
.w-3\.5 { width: 0.875rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-12 { width: 3rem; }
.w-52 { width: 13rem; }
.w-56 { width: 14rem; }
.w-\[2px\] { width: 2px; }
.w-\[18px\] { width: 18px; }
.w-\[46px\] { width: 46px; }
.w-\[84px\] { width: 84px; }

.h-full { height: 100%; }
.h-auto { height: auto; }
.h-1\.5 { height: 0.375rem; }
.h-2 { height: 0.5rem; }
.h-3\.5 { height: 0.875rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-11 { height: 2.75rem; }
.h-52 { height: 13rem; }
.h-56 { height: 14rem; }
.h-\[1px\] { height: 1px; }
.h-\[1\.5px\] { height: 1.5px; }
.h-\[6px\] { height: 6px; }
.h-\[18px\] { height: 18px; }
.h-\[46px\] { height: 46px; }
.h-\[66px\] { height: 66px; }
.h-\[84px\] { height: 84px; }
.h-\[100dvh\] { height: 100vh; height: 100dvh; }

.min-h-0 { min-height: 0px; }
.max-w-xl { max-width: 36rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-\[432px\] { max-width: 432px; }
.max-w-\[460px\] { max-width: 460px; }

/* Spacing */
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-auto { margin-top: auto; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-0\.5 { margin-bottom: 0.125rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2\.5 { margin-bottom: 0.625rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.ml-1 { margin-left: 0.25rem; }

.p-0\.5 { padding: 0.125rem; }
.p-1 { padding: 0.25rem; }
.p-1\.5 { padding: 0.375rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.pt-3\.5 { padding-top: 0.875rem; }
.pt-5 { padding-top: 1.25rem; }
.pb-5 { padding-bottom: 1.25rem; }
.pl-3\.5 { padding-left: 0.875rem; }
.pl-4 { padding-left: 1rem; }
.pr-3\.5 { padding-right: 0.875rem; }

/* Typography */
.text-left { text-align: left; }
.text-center { text-align: center; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[11\.5px\] { font-size: 11.5px; }
.text-\[12px\] { font-size: 12px; }
.text-\[12\.5px\] { font-size: 12.5px; }
.text-\[13px\] { font-size: 13px; }
.text-\[13\.5px\] { font-size: 13.5px; }
.text-\[14px\] { font-size: 14px; }
.text-\[15px\] { font-size: 15px; }
.text-\[21px\] { font-size: 21px; }
.text-\[23px\] { font-size: 23px; }
.text-\[38px\] { font-size: 38px; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-\[0\.15em\] { letter-spacing: 0.15em; }
.tracking-\[0\.16em\] { letter-spacing: 0.16em; }

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-\[1\.1\] { line-height: 1.1; }

.text-white { color: #FFFFFF; }
.text-slate-400 { color: #94A3B8; }
.text-red-800 { color: #991B1B; }
.text-amber-900 { color: #78350F; }
.text-emerald-800 { color: #065F46; }
.text-szabmu-maroon { color: #7B1126; }
.text-szabmu-goldMuted { color: #B48A3E; }
.text-szabmu-slate { color: #141B29; }
.text-szabmu-slate\/85 { color: rgba(20, 27, 41, 0.85); }
.text-szabmu-slateMuted { color: #475569; }
.text-szabmu-slateMuted\/75 { color: rgba(71, 85, 105, 0.75); }
.text-transparent { color: transparent; }

.bg-clip-text {
    background-clip: text;
    -webkit-background-clip: text;
}

/* Backgrounds & Gradients */
.bg-white { background-color: #FFFFFF; }
.bg-white\/85 { background-color: rgba(255, 255, 255, 0.85); }
.bg-white\/90 { background-color: rgba(255, 255, 255, 0.90); }
.bg-red-50 { background-color: #FEF2F2; }
.bg-amber-50 { background-color: #FFFBEB; }
.bg-emerald-50 { background-color: #ECFDF5; }
.bg-szabmu-maroon { background-color: #7B1126; }
.bg-szabmu-maroonSoft { background-color: rgba(123, 17, 38, 0.065); }
.bg-szabmu-gold { background-color: #C59B27; }
.bg-szabmu-ivory { background-color: #FBF9F6; }

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}
.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.from-szabmu-gold {
    --tw-gradient-from: #C59B27;
    --tw-gradient-to: rgba(197, 155, 39, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-szabmu-maroon {
    --tw-gradient-from: #7B1126;
    --tw-gradient-to: rgba(123, 17, 38, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-szabmu-maroon\/50 {
    --tw-gradient-from: rgba(123, 17, 38, 0.5);
    --tw-gradient-to: rgba(123, 17, 38, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-szabmu-maroonDark {
    --tw-gradient-from: #590A1A;
    --tw-gradient-to: rgba(89, 10, 26, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.via-szabmu-gold\/70 {
    --tw-gradient-to: rgba(197, 155, 39, 0);
    --tw-gradient-stops: var(--tw-gradient-from), rgba(197, 155, 39, 0.7), var(--tw-gradient-to);
}
.via-szabmu-goldMuted {
    --tw-gradient-to: rgba(180, 138, 62, 0);
    --tw-gradient-stops: var(--tw-gradient-from), #B48A3E, var(--tw-gradient-to);
}
.via-szabmu-maroon {
    --tw-gradient-to: rgba(123, 17, 38, 0);
    --tw-gradient-stops: var(--tw-gradient-from), #7B1126, var(--tw-gradient-to);
}
.via-szabmu-maroonLight {
    --tw-gradient-to: rgba(140, 21, 43, 0);
    --tw-gradient-stops: var(--tw-gradient-from), #8C152B, var(--tw-gradient-to);
}

.to-transparent { --tw-gradient-to: transparent; }
.to-szabmu-gold { --tw-gradient-to: #C59B27; }
.to-szabmu-goldMuted { --tw-gradient-to: #B48A3E; }
.to-szabmu-maroon\/50 { --tw-gradient-to: rgba(123, 17, 38, 0.5); }

.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Borders, Rings, Radii & Shadows */
.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }

.border-slate-300 { border-color: #CBD5E1; }
.border-red-200 { border-color: #FECACA; }
.border-amber-300 { border-color: #FCD34D; }
.border-emerald-200 { border-color: #A7F3D0; }
.border-szabmu-border { border-color: #E6DFD3; }
.border-szabmu-border\/80 { border-color: rgba(230, 223, 211, 0.8); }
.border-szabmu-border\/90 { border-color: rgba(230, 223, 211, 0.9); }
.border-szabmu-gold\/35 { border-color: rgba(197, 155, 39, 0.35); }
.border-szabmu-gold\/45 { border-color: rgba(197, 155, 39, 0.45); }
.border-szabmu-maroon\/15 { border-color: rgba(123, 17, 38, 0.15); }

.rounded { border-radius: 0.25rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.rounded-\[12px\] { border-radius: 12px; }
.rounded-\[22px\] { border-radius: 22px; }

.ring-1 {
    box-shadow: 0 0 0 1px var(--tw-ring-color, rgba(197, 155, 39, 0.4)), var(--tw-shadow, 0 0 #0000);
}
.ring-szabmu-gold\/40 { --tw-ring-color: rgba(197, 155, 39, 0.4); }
.ring-szabmu-gold\/45 { --tw-ring-color: rgba(197, 155, 39, 0.45); }

.shadow-xs { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04); }
.shadow-sm {
    --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    box-shadow: 0 0 0 1px var(--tw-ring-color, transparent), var(--tw-shadow);
}
.shadow-glass {
    box-shadow: 0 28px 60px -15px rgba(20, 27, 41, 0.12), 0 8px 24px -6px rgba(123, 17, 38, 0.08), inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
}
.shadow-btn {
    box-shadow: 0 8px 22px -4px rgba(123, 17, 38, 0.42), 0 2px 6px -1px rgba(197, 155, 39, 0.25);
}
.shadow-pill {
    box-shadow: 0 4px 14px -2px rgba(123, 17, 38, 0.07);
}
.shadow-\[0_2px_12px_rgba\(20\,27\,41\,0\.03\)\] {
    box-shadow: 0 2px 12px rgba(20, 27, 41, 0.03);
}
.shadow-\[0_6px_20px_rgba\(123\,17\,38\,0\.10\)\] {
    --tw-shadow: 0 6px 20px rgba(123, 17, 38, 0.10);
    box-shadow: 0 0 0 1px var(--tw-ring-color, transparent), var(--tw-shadow);
}

/* Misc & Transitions */
.object-contain { object-fit: contain; }
.opacity-25 { opacity: 0.25; }
.opacity-75 { opacity: 0.75; }
.opacity-90 { opacity: 0.9; }
.accent-\[\#7B1126\] { accent-color: #7B1126; }

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.duration-200 { transition-duration: 200ms; }

/* Interactive States */
.hover\:text-szabmu-maroon:hover { color: #7B1126; }
.hover\:text-szabmu-maroonDark:hover { color: #590A1A; }
.hover\:text-szabmu-slate:hover { color: #141B29; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:shadow-btn-hover:hover {
    box-shadow: 0 14px 28px -4px rgba(123, 17, 38, 0.52), 0 4px 12px -2px rgba(197, 155, 39, 0.35);
}

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-szabmu-maroon\/30:focus { box-shadow: 0 0 0 3px rgba(123, 17, 38, 0.3); }

.group:focus-within .group-focus-within\:text-szabmu-maroon { color: #7B1126; }

/* ========================================================================= */
/* 4. RESPONSIVE BREAKPOINTS                                                 */
/* ========================================================================= */
@media (min-width: 640px) {
    .sm\:w-80 { width: 20rem; }
    .sm\:h-80 { height: 20rem; }
    .sm\:w-96 { width: 24rem; }
    .sm\:h-96 { height: 24rem; }
    .sm\:w-\[92px\] { width: 92px; }
    .sm\:h-\[92px\] { height: 92px; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

@media (min-width: 1024px) {
    .lg\:block { display: block; }
    .lg\:flex { display: flex; }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .lg\:col-span-5 { grid-column: span 5 / span 5; }
    .lg\:col-span-7 { grid-column: span 7 / span 7; }
    .lg\:justify-end { justify-content: flex-end; }
    .lg\:py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

@media (min-width: 1280px) {
    .xl\:h-\[74px\] { height: 74px; }
    .xl\:w-\[52px\] { width: 52px; }
    .xl\:h-\[52px\] { height: 52px; }
    .xl\:gap-14 { gap: 3.5rem; }
    .xl\:text-\[46px\] { font-size: 46px; }
    .xl\:text-\[16px\] { font-size: 16px; }
    .xl\:max-w-\[520px\] { max-width: 520px; }
}
