/* =========================================================
   Sahabat UGM — Filament Auth Login / Register
   Split-screen layout
   Palette: UGM Blue #00537A · Gold #F2B705
   Fonts:   system default (inherit from Filament)
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
    --shbt-ugm-blue: #00537a;
    --shbt-ugm-blue-900: #003c59;
    --shbt-ugm-blue-700: #024a6b;
    --shbt-ugm-blue-500: #0c6b95;
    --shbt-ugm-blue-300: #4e94b0;
    --shbt-gold: #f2b705;
    --shbt-gold-600: #d69f00;
    --shbt-gold-100: #fff4cc;

    --shbt-white: #ffffff;
    --shbt-off-white: #fafaf7;
    --shbt-ink: #0f1f2b;
    --shbt-ink-2: #223342;
    --shbt-muted: #6b7a86;
    --shbt-line: #e5e2d8;
    --shbt-line-strong: #d5d0c1;

    --shbt-r-sm: 10px;
    --shbt-r-md: 14px;
    --shbt-r-lg: 20px;

    --shbt-sh-xs: 0 1px 2px rgba(15, 31, 43, 0.06);
    --shbt-sh-md: 0 8px 24px -12px rgba(15, 31, 43, 0.15);
    --shbt-sh-lg: 0 24px 60px -24px rgba(0, 83, 122, 0.35);
    --shbt-sh-inset-focus: inset 0 0 0 2px rgba(0, 83, 122, 0.18);

    --shbt-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* =========================================================
   LAYOUT — Split screen
   ========================================================= */
.shbt-auth {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .shbt-auth {
        grid-template-columns: 1.05fr 1fr;
    }
}

/* =========================================================
   LEFT PANEL — Brand
   ========================================================= */
.shbt-brand-panel {
    position: relative;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 64px;
    color: var(--shbt-white);
    background: var(--shbt-ugm-blue);
    overflow: hidden;
    isolation: isolate;
}

@media (min-width: 1024px) {
    .shbt-brand-panel {
        display: flex;
    }
}

/* Decorative background layers */
.shbt-brand-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.shbt-brand-glow {
    position: absolute;
    filter: blur(80px);
    opacity: 0.55;
    border-radius: 50%;
}

.shbt-brand-glow--gold {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, var(--shbt-gold) 0%, transparent 70%);
    top: -140px;
    right: -160px;
    opacity: 0.35;
}

.shbt-brand-glow--blue {
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, #0d7bad 0%, transparent 70%);
    bottom: -220px;
    left: -180px;
    opacity: 0.55;
}

.shbt-brand-pattern {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.035) 0px,
        rgba(255, 255, 255, 0.035) 1px,
        transparent 1px,
        transparent 22px
    );
    mask-image: radial-gradient(ellipse at 30% 40%, black 40%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse at 30% 40%, black 40%, transparent 90%);
}

.shbt-brand-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    opacity: 0.5;
    mix-blend-mode: overlay;
}

/* Top mark */
.shbt-brand-top {
    position: relative;
    z-index: 1;
}

.shbt-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    animation: shbtFadeIn 0.6s var(--shbt-ease) both;
}

.shbt-brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--shbt-gold);
    box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.25);
    flex-shrink: 0;
}

/* Middle wordmark */
.shbt-brand-center {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.shbt-wordmark {
    margin-bottom: 28px;
    animation: shbtFadeUp 0.8s var(--shbt-ease) 0.05s both;
}

.shbt-brand-logo {
    display: block;
    width: min(100%, 360px);
    height: auto;
}

.shbt-wordmark-sahabat {
    font-weight: 600;
    font-style: italic;
    color: var(--shbt-gold);
    font-size: clamp(56px, 8vw, 104px);
    letter-spacing: -0.01em;
}

.shbt-wordmark-ugm {
    font-weight: 800;
    color: var(--shbt-white);
    font-size: clamp(56px, 8vw, 104px);
    letter-spacing: -0.02em;
    position: relative;
}

.shbt-wordmark-ugm::after {
    content: '';
    position: absolute;
    right: -6px;
    bottom: 12%;
    width: 18px;
    height: 18px;
    background: var(--shbt-gold);
    border-radius: 2px;
    transform: rotate(45deg);
    box-shadow: 0 4px 12px rgba(242, 183, 5, 0.4);
}

.shbt-brand-tagline {
    font-size: 18px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.86);
    margin: 0 0 40px;
    max-width: 460px;
    font-weight: 400;
    animation: shbtFadeUp 0.8s var(--shbt-ease) 0.15s both;
}

.shbt-tagline-accent {
    color: var(--shbt-gold);
    font-style: italic;
    font-weight: 600;
}

.shbt-brand-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 18px;
    max-width: 440px;
}

.shbt-brand-highlights li {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--shbt-r-md);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: transform 0.35s var(--shbt-ease), background 0.35s var(--shbt-ease), border-color 0.35s var(--shbt-ease);
    animation: shbtFadeUp 0.7s var(--shbt-ease) both;
}

.shbt-brand-highlights li:nth-child(1) { animation-delay: 0.25s; }
.shbt-brand-highlights li:nth-child(2) { animation-delay: 0.35s; }
.shbt-brand-highlights li:nth-child(3) { animation-delay: 0.45s; }

.shbt-brand-highlights li:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(242, 183, 5, 0.4);
}

.shbt-hl-icon {
    font-weight: 700;
    font-style: italic;
    color: var(--shbt-gold);
    font-size: 22px;
    min-width: 34px;
}

.shbt-hl-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
}

/* Bottom footer */
.shbt-brand-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    letter-spacing: 0.06em;
}

.shbt-brand-sep { opacity: 0.5; }

.shbt-brand-copy-alt {
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

/* =========================================================
   RIGHT PANEL — Login Form
   ========================================================= */
.shbt-form-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--shbt-off-white);
}

@media (min-width: 640px) {
    .shbt-form-panel {
        padding: 56px 40px;
    }
}

@media (max-width: 1023px) {
    .shbt-form-panel {
        padding-top: 88px;
    }
}

@media (max-width: 480px) {
    .shbt-form-panel {
        padding: 88px 20px 32px;
    }
}

/* Mobile brand (shown only when brand panel is hidden) */
.shbt-mobile-brand {
    position: absolute;
    top: 24px;
    left: 24px;
}

.shbt-mobile-logo {
    display: block;
    width: 160px;
    height: auto;
}

@media (min-width: 1024px) {
    .shbt-mobile-brand {
        display: none;
    }
}

.shbt-form-container {
    width: 100%;
    max-width: 440px;
}

/* Form Header */
.shbt-form-header {
    margin-bottom: 32px;
    animation: shbtFadeUp 0.6s var(--shbt-ease) 0.1s both;
}

.shbt-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--shbt-gold-600);
    padding: 6px 12px;
    background: var(--shbt-gold-100);
    border-radius: 999px;
    margin: 0 0 20px;
}

.shbt-form-title {
    font-weight: 600;
    color: var(--shbt-ink);
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
}

.shbt-form-subtitle {
    color: var(--shbt-muted);
    font-size: 15px;
    margin: 0;
}

.shbt-link-gold {
    color: var(--shbt-ugm-blue);
    font-weight: 600;
    border-bottom: 1.5px solid var(--shbt-gold);
    padding-bottom: 1px;
    text-decoration: none;
    transition: color 0.2s var(--shbt-ease);
}

.shbt-link-gold:hover {
    color: var(--shbt-gold-600);
}

/* Auth Content (Filament form) */
.shbt-auth-content {
    animation: shbtFadeUp 0.6s var(--shbt-ease) 0.35s both;
}

/* Footer */
.shbt-auth-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px dashed var(--shbt-line);
    color: var(--shbt-muted);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
    animation: shbtFadeUp 0.6s var(--shbt-ease) 0.5s both;
}

.shbt-auth-footer p { margin: 0; }

.shbt-link-inline {
    color: var(--shbt-ugm-blue);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--shbt-gold);
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    transition: color 0.2s var(--shbt-ease);
}

.shbt-link-inline:hover {
    color: var(--shbt-gold-600);
}

/* =========================================================
   Filament Form overrides (scoped to .shbt-auth)
   ========================================================= */
.shbt-auth .fi-input-wrp,
.shbt-auth .fi-select-input-wrp,
.shbt-auth .fi-textarea-wrp {
    border-radius: var(--shbt-r-md) !important;
    background: var(--shbt-white) !important;
    border: 1px solid var(--shbt-line-strong) !important;
    transition:
        border-color 0.2s var(--shbt-ease),
        box-shadow 0.2s var(--shbt-ease) !important;
    box-shadow: var(--shbt-sh-xs) !important;
}

.shbt-auth .fi-input-wrp:focus-within,
.shbt-auth .fi-select-input-wrp:focus-within,
.shbt-auth .fi-textarea-wrp:focus-within {
    border-color: var(--shbt-ugm-blue) !important;
    box-shadow: var(--shbt-sh-inset-focus), 0 0 0 4px rgba(0, 83, 122, 0.08) !important;
    background: var(--shbt-white) !important;
}

.shbt-auth .fi-btn.fi-btn-color-primary {
    border-radius: var(--shbt-r-md) !important;
    background: var(--shbt-ugm-blue) !important;
    border-color: transparent !important;
    box-shadow: var(--shbt-sh-lg) !important;
    transition: background 0.2s var(--shbt-ease) !important;
}

.shbt-auth .fi-btn.fi-btn-color-primary:hover {
    background: var(--shbt-ugm-blue-900) !important;
}

/* =========================================================
   Entrance animations
   ========================================================= */
@keyframes shbtFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (prefers-reduced-motion: reduce) {
    .shbt-auth * {
        animation: none !important;
        transition: none !important;
    }
}
