/**
 * SIKEPO - Portal Masuk / Login Stylesheet
 * Pengadilan Tata Usaha Negara Padang
 * -------------------------------------------------------------
 */

/* ==========================================================================
     1. DESIGN TOKENS & ROOT VARIABLES
     ========================================================================== */
  :root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-hover: #1e40af;
    --primary-light: #eff6ff;
    --primary-glow: rgba(37, 99, 235, 0.22);
    --cyan-accent: #06b6d4;
    --emerald-accent: #10b981;
    --amber-accent: #f59e0b;
    --dark-deep: #050b17;
    --dark-surface: #0f172a;
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
    --border-card: rgba(255, 255, 255, 0.95);
  }

  /* ==========================================================================
     2. RESET & BASE STYLES
     ========================================================================== */
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    background: var(--dark-deep);
    color: var(--text-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* ==========================================================================
     3. MAIN LAYOUT CONTAINER
     ========================================================================== */
  .auth-wrapper {
    min-height: 100vh;
    display: flex;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 12% 45%, #0c1c38 0%, #040813 100%);
  }

  /* ==========================================================================
     4. AMBIENT BACKGROUND & PARTICLES
     ========================================================================== */
  .bg-ambient {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
  }

  .glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.55;
    will-change: transform;
    animation: floatOrb 22s ease-in-out infinite alternate;
  }

  .glow-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #1e40af 0%, rgba(30, 64, 175, 0) 70%);
    top: -150px;
    left: -120px;
  }

  .glow-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #0284c7 0%, rgba(2, 132, 199, 0) 70%);
    bottom: -140px;
    left: 20%;
    opacity: 0.35;
    animation-duration: 26s;
    animation-delay: -6s;
  }

  .glow-orb-3 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #4f46e5 0%, rgba(79, 70, 229, 0) 70%);
    top: 45%;
    left: -60px;
    opacity: 0.3;
    animation-duration: 20s;
    animation-delay: -10s;
  }

  @keyframes floatOrb {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(50px, 35px) scale(1.08); }
    100% { transform: translate(-35px, -45px) scale(0.94); }
  }

  .bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
      linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 75% 65% at 30% 50%, #000 35%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 30% 50%, #000 35%, transparent 80%);
  }

  .star-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .star-point {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: starTwinkle 4s infinite ease-in-out;
  }

  @keyframes starTwinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50%      { opacity: 0.9; transform: scale(1.5); }
  }

  /* ==========================================================================
     5. LEFT SHOWCASE PANEL
     ========================================================================== */
  .showcase-panel {
    flex: 1.25;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2.5rem;
    position: relative;
    z-index: 2;
    color: #fff;
  }

  .showcase-content {
    max-width: 560px;
    width: 100%;
    text-align: center;
  }

  .brand-header-wrap {
    margin-bottom: 1.75rem;
  }

  .brand-logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1.15rem;
  }

  .logo-pulse-ring {
    position: absolute;
    inset: -12px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.5), rgba(6, 182, 212, 0.3));
    filter: blur(14px);
    animation: ringPulse 3.5s ease-in-out infinite;
  }

  @keyframes ringPulse {
    0%, 100% { transform: scale(0.96); opacity: 0.6; }
    50%      { transform: scale(1.08); opacity: 0.95; }
  }

  .brand-logo-box {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 2;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .brand-logo-box:hover {
    transform: translateY(-4px) scale(1.04);
  }

  .brand-logo-box img {
    max-width: 62px;
    max-height: 62px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
  }

  .inst-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 15px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0.65rem;
  }

  .brand-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.7px;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 0.35rem;
    text-shadow: 0 2px 18px rgba(37, 99, 235, 0.35);
  }

  .brand-desc {
    font-size: 0.93rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 0;
  }

  /* ==========================================================================
     6. 3D VISUAL STAGE & FLOATING BADGES
     ========================================================================== */
  .visual-stage {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 350px;
    margin: 1.25rem auto 0;
    perspective: 1000px;
  }

  .stage-main-card {
    position: absolute;
    width: 350px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    padding: 1.35rem 1.45rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 25px rgba(37, 99, 235, 0.18);
    text-align: left;
    z-index: 2;
    animation: floatCentralCard 6s ease-in-out infinite alternate;
  }

  @keyframes floatCentralCard {
    0%   { transform: translate(-50%, -50%) translateY(0); }
    100% { transform: translate(-50%, -50%) translateY(-6px); }
  }

  .card-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.15rem;
  }

  .card-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .card-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  }

  .card-user-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
  }

  .card-user-nip {
    font-size: 0.74rem;
    color: #94a3b8;
  }

  .card-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.32);
    color: #34d399;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
  }

  .status-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: dotPulse 2s infinite;
  }

  @keyframes dotPulse {
    0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70%  { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
  }

  .quota-visual-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.9rem 1.05rem;
    margin-bottom: 0.9rem;
  }

  .quota-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.45rem;
  }

  .quota-title {
    font-size: 0.74rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .quota-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #38bdf8;
  }

  .quota-num span {
    font-size: 0.8rem;
    font-weight: 500;
    color: #94a3b8;
  }

  .progress-custom {
    height: 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
  }

  .progress-fill {
    height: 100%;
    width: 75%;
    border-radius: 6px;
    background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.45);
  }

  /* Floating Service Badges */
  .floating-service-badge {
    position: absolute;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 0.6rem 0.95rem;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    z-index: 4;
    cursor: default;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .floating-service-badge:hover {
    transform: scale(1.05) translateY(-3px) !important;
    background: rgba(30, 41, 59, 0.96);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.55), 0 0 20px rgba(56, 189, 248, 0.25);
  }

  .fsb-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #fff;
    flex-shrink: 0;
  }

  .fsb-title {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.15;
    color: #f8fafc;
    white-space: nowrap;
  }

  .fsb-desc {
    font-size: 0.67rem;
    font-weight: 500;
    display: block;
    line-height: 1.1;
    margin-top: 2px;
  }

  /* Badge Keyframes: Harmonized & Smooth */
  @keyframes floatBadgeA {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-7px); }
  }

  @keyframes floatBadgeB {
    0%   { transform: translateY(0); }
    100% { transform: translateY(7px); }
  }

  /* 1. Pengajuan Cuti (Top Left) */
  .badge-cuti {
    top: -5px;
    left: 10px;
    border-color: rgba(56, 189, 248, 0.35);
    animation: floatBadgeA 5.5s ease-in-out infinite alternate;
  }
  .badge-cuti .fsb-icon {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    box-shadow: 0 3px 10px rgba(56, 189, 248, 0.4);
  }
  .badge-cuti .fsb-desc { color: #7dd3fc; }

  /* 2. Mahasiswa Magang (Top Right) */
  .badge-pangkat {
    top: 5px;
    right: 10px;
    border-color: rgba(245, 158, 11, 0.35);
    animation: floatBadgeB 6s ease-in-out infinite alternate;
    animation-delay: -1s;
  }
  .badge-pangkat .fsb-icon {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
  }
  .badge-pangkat .fsb-desc { color: #fde047; }

  /* 3. Izin Belajar (Bottom Left) */
  .badge-belajar {
    bottom: 35px;
    left: 5px;
    border-color: rgba(168, 85, 247, 0.35);
    animation: floatBadgeB 6.5s ease-in-out infinite alternate;
    animation-delay: -2s;
  }
  .badge-belajar .fsb-icon {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    box-shadow: 0 3px 10px rgba(168, 85, 247, 0.4);
  }
  .badge-belajar .fsb-desc { color: #d8b4fe; }

  /* 4. Surat Tugas (Bottom Right) */
  .badge-tugas {
    bottom: 40px;
    right: 5px;
    border-color: rgba(16, 185, 129, 0.35);
    animation: floatBadgeA 5.8s ease-in-out infinite alternate;
    animation-delay: -1.5s;
  }
  .badge-tugas .fsb-icon {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.4);
  }
  .badge-tugas .fsb-desc { color: #6ee7b7; }

  /* 5. Layanan Perizinan (Center Bottom) */
  .badge-perizinan {
    bottom: -16px;
    left: 30px;
    border-color: rgba(59, 130, 246, 0.35);
    animation: floatBadgeA 6.8s ease-in-out infinite alternate;
    animation-delay: -3s;
  }
  .badge-perizinan .fsb-icon {
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.4);
  }
  .badge-perizinan .fsb-desc { color: #93c5fd; }

  /* 6. WA Gateway Badge (Bottom Right Accent) */
  .float-badge-wa {
    position: absolute;
    bottom: -22px;
    right: 25px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #ffffff;
    padding: 0.55rem 0.95rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(34, 197, 94, 0.25);
    z-index: 5;
    animation: floatBadgeB 6.2s ease-in-out infinite alternate;
    cursor: default;
    user-select: none;
    transition: all 0.3s ease;
  }

  .float-badge-wa:hover {
    transform: scale(1.05) translateY(-3px) !important;
    border-color: #22c55e;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 25px rgba(34, 197, 94, 0.35);
  }

  .wa-badge-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    box-shadow: 0 3px 10px rgba(34, 197, 94, 0.4);
  }

  .wa-text-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.15;
  }

  .wa-text-desc {
    font-size: 0.66rem;
    color: #4ade80;
    line-height: 1.1;
    margin-top: 2px;
  }

  /* ==========================================================================
     7. RIGHT LOGIN PANEL & ELEVATED WHITE CARD
     ========================================================================== */
  .login-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 2rem;
    position: relative;
    z-index: 3;
  }

  .login-card-inner {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: 26px;
    padding: 2.4rem 2rem 2rem;
    box-shadow: 
      0 25px 60px -12px rgba(0, 0, 0, 0.48),
      0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    animation: cardFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

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

  /* Institution Header */
  .inst-header-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1.5px solid var(--border-light);
    border-radius: 18px;
    padding: 0.9rem 1.15rem;
    margin-bottom: 1.4rem;
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease;
  }

  .inst-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--cyan-accent));
    border-radius: 4px 0 0 4px;
  }

  .inst-logo-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
  }

  .inst-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
  }

  .inst-info-wrap {
    flex: 1;
    min-width: 0;
  }

  .inst-court-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.32;
    letter-spacing: -0.2px;
    margin-bottom: 0.3rem;
  }

  .inst-dept-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--primary-dark);
  }

  .inst-dept-dot {
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    background: var(--emerald-accent);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  }

  /* ==========================================================================
     8. FORM ELEMENTS & INPUTS
     ========================================================================== */
  .form-group-wrap {
    margin-bottom: 1.15rem;
  }

  .custom-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.45rem;
  }

  .input-box {
    position: relative;
    display: flex;
    align-items: center;
  }

  .input-lead-icon {
    position: absolute;
    left: 14px;
    font-size: 1.1rem;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 2;
  }

  .custom-input {
    width: 100%;
    height: 48px;
    padding: 0.6rem 0.95rem 0.6rem 2.7rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 0.92rem;
    font-family: inherit;
    font-weight: 500;
    color: var(--text-heading);
    background: #f8fafc;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
  }

  .custom-input:-webkit-autofill,
  .custom-input:-webkit-autofill:hover, 
  .custom-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
    -webkit-text-fill-color: var(--text-heading) !important;
    border-color: #cbd5e1;
  }

  .custom-input:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3.5px var(--primary-glow);
  }

  .input-box:focus-within .input-lead-icon {
    color: var(--primary);
    transform: scale(1.05);
  }

  .custom-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
  }

  /* Password Toggle Button */
  .btn-pw-eye {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.05rem;
    z-index: 3;
  }

  .btn-pw-eye:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
  }

  /* Captcha Verification */
  .captcha-container {
    display: flex;
    gap: 0.65rem;
    align-items: stretch;
  }

  .captcha-box-badge {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 2px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    user-select: none;
    position: relative;
    overflow: hidden;
  }

  .captcha-box-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(30deg);
  }

  .captcha-input-wrap {
    flex: 1;
    position: relative;
  }

  .captcha-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  /* Submit Button */
  .btn-submit-login {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%);
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 8px 20px -3px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
    margin-top: 1.35rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .btn-submit-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: 0.65s;
  }

  .btn-submit-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -3px rgba(37, 99, 235, 0.5);
  }

  .btn-submit-login:hover:not(:disabled)::before {
    left: 180%;
  }

  .btn-submit-login:hover:not(:disabled) .btn-arrow-icon {
    transform: translateX(4px);
  }

  .btn-arrow-icon {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
  }

  .btn-submit-login:active:not(:disabled) {
    transform: translateY(0);
  }

  .btn-submit-login:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
  }

  /* ==========================================================================
     9. ALERTS & LOADING FEEDBACK
     ========================================================================== */
  .custom-alert-error {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-left: 4px solid #ef4444;
    border-radius: 12px;
    padding: 0.75rem 0.95rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: #991b1b;
    font-size: 0.84rem;
    animation: shakeAlert 0.4s ease-in-out;
  }

  @keyframes shakeAlert {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
  }

  .custom-alert-error i {
    font-size: 1.1rem;
    color: #ef4444;
    flex-shrink: 0;
    margin-top: 1px;
  }

  .auth-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 26px;
    z-index: 100;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
  }

  .auth-loading-overlay.active {
    display: flex;
  }

  .loading-glow-spinner {
    width: 44px;
    height: 44px;
    border: 3.5px solid #e2e8f0;
    border-top-color: var(--primary);
    border-right-color: #38bdf8;
    border-radius: 50%;
    animation: spinSpinner 0.75s linear infinite;
  }

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

  /* ==========================================================================
     10. FOOTER & ANTI-GRATIFIKASI PILL
     ========================================================================== */
  .login-footer-bar {
    margin-top: 1.6rem;
    padding-top: 1.1rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 0.76rem;
    color: var(--text-muted);
  }

  .login-footer-bar strong {
    color: #475569;
  }

  .gratifikasi-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 0.35rem;
    box-shadow: 0 1px 3px rgba(4, 120, 87, 0.08);
  }

  .gratifikasi-link-pill:hover {
    background: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(4, 120, 87, 0.12);
  }

  /* Modal Maklumat Container */
  .gratifikasi-img-wrapper {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    background: #0e4d2a;
  }

  /* ==========================================================================
     11. RESPONSIVE MEDIA QUERIES
     ========================================================================== */
  @media (max-width: 1080px) {
    .stage-main-card {
      width: 320px;
      padding: 1.15rem 1.25rem;
    }
  }

  @media (max-width: 991.98px) {
    .auth-wrapper {
      flex-direction: column;
      min-height: 100vh;
    }
    .showcase-panel {
      padding: 2.5rem 1.5rem 1.5rem;
      flex: none;
    }
    .visual-stage {
      display: none;
    }
    .brand-title {
      font-size: 2.1rem;
    }
    .login-panel {
      padding: 1rem 1.25rem 2.5rem;
      width: 100%;
      flex: 1;
    }
    .login-card-inner {
      max-width: 430px;
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    }
  }

  @media (max-width: 575.98px) {
    .showcase-panel {
      padding: 2rem 1rem 1rem;
    }
    .brand-logo-box {
      width: 76px;
      height: 76px;
      border-radius: 18px;
    }
    .brand-logo-box img {
      max-width: 50px;
      max-height: 50px;
    }
    .brand-title {
      font-size: 1.8rem;
    }
    .brand-desc {
      font-size: 0.85rem;
    }
    .login-card-inner {
      padding: 1.85rem 1.35rem 1.5rem;
      border-radius: 20px;
    }
    .inst-header-card {
      padding: 0.75rem 0.95rem;
      gap: 11px;
      border-radius: 14px;
    }
    .inst-logo-wrapper {
      width: 44px;
      height: 44px;
      border-radius: 11px;
    }
    .inst-court-title {
      font-size: 0.88rem;
    }
    .captcha-box-badge {
      font-size: 1.05rem;
      padding: 0 0.95rem;
    }
    .btn-submit-login {
      height: 46px;
      font-size: 0.92rem;
    }
  }
