
  @import url('https://cdn.jsdelivr.net/npm/fontsource-inter@5.0.0/index.css');

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  :root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --clay-dark: #1e1e32;
    --clay-mid: #2a2a45;
    --clay-light: #3a3a5c;
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0b8;
    --text-muted: #6a6a82;
    --accent: #7c6ff7;
    --accent-glow: #9b8fff;
    --accent-dim: #5a4fd4;
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f87171;
    --info: #60a5fa;
    --shadow-dark: rgba(0, 0, 0, 0.5);
    --shadow-light: rgba(255, 255, 255, 0.05);
    --shadow-inset: rgba(0, 0, 0, 0.35);
  }

  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
  }

  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
      radial-gradient(ellipse at 15% 50%, rgba(124, 111, 247, 0.12) 0%, transparent 50%),
      radial-gradient(ellipse at 85% 20%, rgba(155, 143, 255, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse at 50% 90%, rgba(124, 111, 247, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
  }

  .login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    position: relative;
    z-index: 1;
  }

  /* LEFT - Branding Panel */
  .brand-panel {
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
  }

  .brand-panel::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 111, 247, 0.15) 0%, transparent 70%);
    pointer-events: none;
  }

  .brand-panel::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
    pointer-events: none;
  }

  .brand-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 2;
  }

  .brand-logo-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--clay-mid), var(--clay-dark));
    box-shadow: 
      8px 8px 20px var(--shadow-dark),
      -4px -4px 12px var(--shadow-light),
      inset 1px 1px 2px rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.04);
  }

  .brand-logo-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 111, 247, 0.2), transparent);
  }

  .brand-logo-icon svg {
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 1;
  }

  .brand-logo-text {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-glow) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
  }

  .brand-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
  }

  .brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    background: linear-gradient(145deg, var(--clay-mid), var(--clay-dark));
    box-shadow: 
      6px 6px 14px var(--shadow-dark),
      -3px -3px 8px var(--shadow-light);
    border: 1px solid rgba(255,255,255,0.04);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-glow);
    margin-bottom: 28px;
    width: fit-content;
  }

  .brand-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: pulse 2s infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }

  .brand-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
  }

  .brand-title .highlight {
    background: linear-gradient(135deg, var(--accent-glow), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .brand-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: 40px;
  }

  .brand-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
  }

  .feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--clay-mid), var(--clay-dark));
    box-shadow: 
      6px 6px 14px var(--shadow-dark),
      -3px -3px 8px var(--shadow-light);
    border: 1px solid rgba(255,255,255,0.04);
    transition: all 0.3s ease;
  }

  .feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 
      8px 8px 18px var(--shadow-dark),
      -4px -4px 10px var(--shadow-light);
  }

  .feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(145deg, var(--clay-light), var(--clay-mid));
    box-shadow: 
      3px 3px 8px var(--shadow-dark),
      -2px -2px 4px var(--shadow-light);
  }

  .feature-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent-glow);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .feature-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
  }

  .brand-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
  }

  .brand-stat {
    display: flex;
    flex-direction: column;
  }

  .brand-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
  }

  .brand-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* RIGHT - Form Panel */
  .form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
    position: relative;
  }

  .form-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
    border-radius: 28px;
    background: linear-gradient(145deg, var(--clay-mid), var(--clay-dark));
    box-shadow: 
      12px 12px 30px var(--shadow-dark),
      -6px -6px 16px var(--shadow-light),
      inset 1px 1px 2px rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.04);
    position: relative;
    overflow: hidden;
  }

  .form-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 111, 247, 0.1) 0%, transparent 70%);
    pointer-events: none;
  }

  .form-header {
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
  }

  .form-greeting {
    font-size: 13px;
    color: var(--accent-glow);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .form-greeting::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
  }

  .form-title {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
  }

  .form-subtitle {
    font-size: 14px;
    color: var(--text-muted);
  }

  .form-body {
    position: relative;
    z-index: 1;
  }

  .input-group {
    margin-bottom: 20px;
  }

  .input-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
  }

  .input-label a {
    color: var(--accent-glow);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s;
  }

  .input-label a:hover {
    color: var(--accent);
  }

  .input-wrap {
    position: relative;
  }

  .input-wrap svg.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transition: stroke 0.2s;
  }

  .input-field {
    width: 100%;
    padding: 14px 16px 14px 46px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--clay-dark), var(--clay-mid));
    box-shadow: 
      inset 3px 3px 8px var(--shadow-inset),
      inset -1px -1px 3px rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.25s ease;
  }

  .input-field::placeholder {
    color: var(--text-muted);
  }

  .input-field:focus {
    border-color: rgba(124, 111, 247, 0.4);
    box-shadow: 
      inset 3px 3px 8px var(--shadow-inset),
      inset -1px -1px 3px rgba(255,255,255,0.02),
      0 0 0 3px rgba(124, 111, 247, 0.15);
  }

  .input-field:focus + svg.input-icon,
  .input-wrap:focus-within svg.input-icon {
    stroke: var(--accent-glow);
  }

  .password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .password-toggle svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s;
  }

  .password-toggle:hover svg {
    stroke: var(--accent-glow);
  }

  .form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
  }

  .checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
  }

  .checkbox-wrap input {
    display: none;
  }

  .checkbox-box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: linear-gradient(145deg, var(--clay-dark), var(--clay-mid));
    box-shadow: 
      inset 2px 2px 5px var(--shadow-inset),
      inset -1px -1px 2px rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }

  .checkbox-box svg {
    width: 12px;
    height: 12px;
    stroke: #fff;
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
  }

  .checkbox-wrap input:checked + .checkbox-box {
    background: linear-gradient(145deg, var(--accent-dim), var(--accent));
    box-shadow: 
      inset 1px 1px 3px rgba(0,0,0,0.3),
      2px 2px 6px rgba(124, 111, 247, 0.3);
    border-color: rgba(124, 111, 247, 0.5);
  }

  .checkbox-wrap input:checked + .checkbox-box svg {
    opacity: 1;
    transform: scale(1);
  }

  .checkbox-label {
    font-size: 13px;
    color: var(--text-secondary);
  }

  .btn-login {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--accent-dim), var(--accent));
    box-shadow: 
      6px 6px 16px var(--shadow-dark),
      -3px -3px 8px rgba(124, 111, 247, 0.15),
      inset 1px 1px 2px rgba(255,255,255,0.15);
    border: 1px solid rgba(124, 111, 247, 0.3);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
  }

  .btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
  }

  .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 
      8px 8px 20px var(--shadow-dark),
      -4px -4px 10px rgba(124, 111, 247, 0.2),
      inset 1px 1px 2px rgba(255,255,255,0.2);
  }

  .btn-login:hover::before {
    left: 100%;
  }

  .btn-login:active {
    transform: translateY(1px);
    box-shadow: 
      inset 3px 3px 8px rgba(0,0,0,0.3),
      inset -1px -1px 4px rgba(255,255,255,0.1);
  }

  .btn-login svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 12px;
  }

  .divider::before,
  .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  }

  .social-login {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
  }

  .social-btn {
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--clay-light), var(--clay-mid));
    box-shadow: 
      4px 4px 10px var(--shadow-dark),
      -2px -2px 6px var(--shadow-light);
    border: 1px solid rgba(255,255,255,0.04);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
      6px 6px 14px var(--shadow-dark),
      -3px -3px 8px var(--shadow-light);
  }

  .social-btn:active {
    transform: translateY(1px);
    box-shadow: 
      inset 2px 2px 6px var(--shadow-inset),
      inset -1px -1px 3px rgba(255,255,255,0.02);
  }

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

  .form-footer {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
  }

  .form-footer a {
    color: var(--accent-glow);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
  }

  .form-footer a:hover {
    color: var(--accent);
  }

  /* Success state */
  .btn-login.loading {
    pointer-events: none;
    opacity: 0.8;
  }

  .btn-login.loading .btn-text {
    opacity: 0;
  }

  .btn-login.loading .btn-loader {
    opacity: 1;
  }

  .btn-loader {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: spin 0.8s linear infinite;
  }

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

  /* Responsive */
  @media (max-width: 1024px) {
    .brand-panel { padding: 40px; }
    .form-panel { padding: 40px; }
    .brand-title { font-size: 42px; }
  }

  @media (max-width: 768px) {
    .login-container {
      grid-template-columns: 1fr;
    }
    .brand-panel {
      padding: 32px 24px 24px;
      min-height: auto;
    }
    .brand-content { padding: 20px 0; }
    .brand-title { font-size: 32px; }
    .brand-subtitle { font-size: 14px; }
    .brand-features { grid-template-columns: 1fr; }
    .brand-footer { display: none; }
    .form-panel { padding: 24px; }
    .form-card { padding: 28px; }
    .form-title { font-size: 24px; }
  }

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

  .form-card {
    animation: slideUp 0.6s ease;
  }

  .brand-logo { animation: slideUp 0.5s ease; }
  .brand-content { animation: slideUp 0.7s ease; }
  .brand-footer { animation: slideUp 0.8s ease; }

/* Laravel alignment – changes do not replace the baseline login geometry */
.login-container{width:100%;} .login-form-error{margin-bottom:18px;padding:12px 15px;border-radius:12px;background:rgba(248,113,113,.12);border:1px solid rgba(248,113,113,.35);color:#ffd0d0;font-size:13px;line-height:1.5}
.input-field.is-invalid{border-color:rgba(248,113,113,.65)}.login-brand-caption{color:var(--text-muted);font-size:12px;line-height:1.5}
.brand-stat-value{color:var(--accent-glow)}.brand-stat-label{text-transform:none}.private-indicator{display:inline-flex;align-items:center;gap:8px;color:var(--text-secondary);font-size:12px}
.private-indicator-dot{width:6px;height:6px;border-radius:50%;background:var(--success)}.form-note{font-size:12px;color:var(--text-muted);margin-top:18px;line-height:1.6;text-align:center}
@media(max-width:768px){.brand-features{grid-template-columns:repeat(2,minmax(0,1fr))}.brand-content{padding:24px 0 0}.brand-subtitle{margin-bottom:24px}.brand-panel{padding-bottom:10px}}
@media(max-width:420px){.brand-features{grid-template-columns:1fr 1fr;gap:9px}.feature-item{padding:11px 9px;gap:8px}.feature-text{font-size:11px}.form-panel{padding:10px 16px 26px}.form-card{padding:26px 20px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* MemeHub UI refinement: slim dark scrollbars (dashboard + login) */
:root {
    --mh-scroll-track: #19192d;
    --mh-scroll-thumb: #3b3956;
    --mh-scroll-hover: #5c567d;
}
html, body, * {
    scrollbar-width: thin;
    scrollbar-color: var(--mh-scroll-thumb) var(--mh-scroll-track);
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--mh-scroll-track); }
::-webkit-scrollbar-thumb {
    background: var(--mh-scroll-thumb);
    border-radius: 999px;
    border: 1px solid var(--mh-scroll-track);
}
::-webkit-scrollbar-thumb:hover { background: var(--mh-scroll-hover); }
::-webkit-scrollbar-corner { background: var(--mh-scroll-track); }
