/* ============================================================
   The Chain Studio — Portál Stíluslap
   Geist · Reszponzív · Mobile-first
   ============================================================ */

   @import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&display=swap');

   /* ── CSS VÁLTOZÓK ─────────────────────────────────────────── */
   :root {
       --surface-main:  #FAFAFA;
       --surface-card:  #FFFFFF;
       --surface-hover: #F4F4F5;
   
       --text-primary:   #09090B;
       --text-secondary: #71717A;
       --text-tertiary:  #A1A1AA;
   
       --accent-primary:     #09090B;
       --accent-brand:       #E11D48;
       --accent-brand-hover: #BE123C;
   
       --border-light: rgba(0, 0, 0, 0.07);
       --border-focus: rgba(225, 29, 72, 0.35);
   
       --shadow-sm:    0 1px 2px rgba(0,0,0,0.04);
       --shadow-md:    0 4px 12px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.04);
       --shadow-lg:    0 12px 32px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
       --shadow-float: 0 20px 40px -8px rgba(0,0,0,0.12);
   
       --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
       --radius-sm: 6px;
       --radius-md: 12px;
       --radius-lg: 20px;
   
       --transition-snap:   0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
       --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
   }
   
   /* ── RESET ────────────────────────────────────────────────── */
   *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
   
   body {
       font-family: var(--font-sans);
       background: var(--surface-main);
       color: var(--text-primary);
       line-height: 1.6;
       font-size: 16px;
       -webkit-font-smoothing: antialiased;
       -moz-osx-font-smoothing: grayscale;
       overflow-x: hidden;
   }
   
   img, svg { display: block; max-width: 100%; }
   a { color: inherit; }
   
   /* ── TIPOGRÁFIA ───────────────────────────────────────────── */
   h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 0.4em; }
   h2 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.6em; }
   h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5em; }
   p  { color: var(--text-secondary); margin-bottom: 0.9rem; }
   p:last-child { margin-bottom: 0; }
   
   /* ── CONTAINER ────────────────────────────────────────────── */
   .container {
       width: 100%;
       max-width: 1320px;
       margin: 0 auto;
       padding: clamp(1rem, 4vw, 2.5rem);
   }
   
   /* ── BEJELENTKEZÉSI LAYOUT (Split Screen) ─────────────────── */
   .auth-layout {
       display: flex;
       min-height: 100vh;
       width: 100%;
   }
   
   .auth-visual {
       display: none; /* Asztali nézetben jelenik meg */
       flex: 1;
       background: linear-gradient(145deg, #09090B 0%, #1a1a26 100%);
       padding: clamp(2rem, 5vw, 4rem);
       color: white;
       flex-direction: column;
       justify-content: space-between;
       position: relative;
       overflow: hidden;
   }
   
   /* Ambient animáció a bal panelen */
   .auth-visual::before {
       content: '';
       position: absolute;
       inset: -50%;
       background: radial-gradient(circle at 50% 50%, rgba(225,29,72,0.14) 0%, transparent 55%);
       animation: ambientPulse 14s ease-in-out infinite alternate;
       pointer-events: none;
   }
   @keyframes ambientPulse {
       0%   { transform: scale(1)   translate(0, 0); }
       100% { transform: scale(1.1) translate(3%, 3%); }
   }
   
   @media (min-width: 860px) {
       .auth-visual { display: flex; max-width: 460px; }
   }
   
   .auth-form-container {
       flex: 1;
       display: flex;
       align-items: center;
       justify-content: center;
       padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 5vw, 2.5rem);
       background: var(--surface-main);
       min-height: 100vh;
   }
   
   .auth-box {
       width: 100%;
       max-width: 420px;
       animation: fadeUp 0.55s var(--transition-smooth) both;
   }
   
   @keyframes fadeUp {
       from { opacity: 0; transform: translateY(22px); }
       to   { opacity: 1; transform: translateY(0); }
   }
   
   /* ── FORM ELEMEK ──────────────────────────────────────────── */
   .form-group {
       margin-bottom: 1.25rem;
       position: relative;
   }
   
   label {
       display: block;
       font-size: 0.855rem;
       font-weight: 500;
       color: var(--text-primary);
       margin-bottom: 0.45rem;
   }
   
   input[type="text"],
   input[type="password"],
   input[type="email"],
   input[type="url"],
   input[type="tel"],
   input[type="date"],
   input[type="time"],
   input[type="number"],
   select,
   textarea {
       width: 100%;
       padding: 0.8rem 0.95rem;
       background: var(--surface-card);
       border: 1.5px solid var(--border-light);
       border-radius: var(--radius-sm);
       font-family: inherit;
       font-size: 0.95rem;
       color: var(--text-primary);
       box-shadow: var(--shadow-sm);
       transition:
           border-color var(--transition-snap),
           box-shadow   var(--transition-snap),
           transform    var(--transition-snap);
       -webkit-appearance: none;
       appearance: none;
   }
   
   /* Select nyíl */
   select {
       background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2371717a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
       background-repeat: no-repeat;
       background-position: right 0.9rem center;
       padding-right: 2.25rem;
       cursor: pointer;
   }
   
   input::placeholder,
   textarea::placeholder { color: var(--text-tertiary); }
   
   input:focus,
   select:focus,
   textarea:focus {
       outline: none;
       border-color: var(--accent-brand);
       box-shadow: 0 0 0 3px var(--border-focus);
       transform: translateY(-1px);
   }
   
   textarea { resize: vertical; min-height: 80px; }
   
   /* ── GOMBOK ───────────────────────────────────────────────── */
   .btn {
       display: inline-flex;
       align-items: center;
       justify-content: center;
       gap: 0.5rem;
       padding: 0.8rem 1.4rem;
       font-family: inherit;
       font-size: 0.9rem;
       font-weight: 600;
       border-radius: var(--radius-sm);
       border: none;
       cursor: pointer;
       text-decoration: none;
       transition:
           background  var(--transition-snap),
           transform   var(--transition-snap),
           box-shadow  var(--transition-snap),
           border-color var(--transition-snap);
       width: 100%;
       -webkit-tap-highlight-color: transparent;
       user-select: none;
   }
   
   .btn:active { transform: translateY(0) scale(0.98); }
   
   .btn-primary {
       background: var(--accent-primary);
       color: white;
       box-shadow: var(--shadow-md);
   }
   .btn-primary:hover {
       background: #27272A;
       transform: translateY(-2px);
       box-shadow: var(--shadow-lg);
   }
   
   .btn-accent {
       background: var(--accent-brand);
       color: white;
   }
   .btn-accent:hover {
       background: var(--accent-brand-hover);
       box-shadow: 0 6px 16px rgba(225,29,72,0.22);
       transform: translateY(-1px);
   }
   
   .btn-outline {
       background: transparent;
       border: 1.5px solid var(--border-light);
       color: var(--text-primary);
   }
   .btn-outline:hover {
       background: var(--surface-hover);
       border-color: #D4D4D8;
   }
   
   /* ── KÁRTYÁK ──────────────────────────────────────────────── */
   .card {
       background: var(--surface-card);
       padding: clamp(1.25rem, 3vw, 2rem);
       border-radius: var(--radius-md);
       border: 1px solid var(--border-light);
       box-shadow: var(--shadow-md);
       transition: box-shadow var(--transition-smooth), transform var(--transition-smooth);
   }
   
   /* ── BRAND SZÖVEG ─────────────────────────────────────────── */
   .brand-text {
       font-weight: 700;
       font-size: 1.15rem;
       letter-spacing: -0.02em;
       color: var(--text-primary);
   }
   .brand-text span { color: var(--accent-brand); }
   
   /* ── ÉRTESÍTÉSEK ──────────────────────────────────────────── */
   .alert {
       padding: 0.9rem 1.25rem;
       border-radius: var(--radius-sm);
       font-size: 0.88rem;
       font-weight: 500;
       margin-bottom: 1.5rem;
       display: flex;
       align-items: flex-start;
       gap: 0.6rem;
       animation: fadeUp 0.3s ease both;
       line-height: 1.5;
   }
   .alert-error   { background: #FFF1F2; color: #BE123C; border: 1px solid #FECDD3; }
   .alert-success { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
   
   /* ── HALADÁS SÁV ──────────────────────────────────────────── */
   .progress-wrapper { margin: 1.5rem 0; }
   .progress-header  { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 0.6rem; font-size: 0.88rem; }
   .progress-track   { background: var(--surface-hover); height: 7px; border-radius: 99px; overflow: hidden; }
   .progress-fill {
       background: linear-gradient(90deg, var(--accent-brand), #FF4D6D);
       height: 100%;
       border-radius: 99px;
       transition: width 1.4s cubic-bezier(0.16,1,0.3,1);
   }
   
   /* ── STÁTUSZ BADGE ────────────────────────────────────────── */
   .status-badge {
       display: inline-flex;
       align-items: center;
       padding: 0.3rem 0.75rem;
       background: rgba(225,29,72,0.08);
       color: var(--accent-brand);
       font-size: 0.72rem;
       font-weight: 700;
       text-transform: uppercase;
       letter-spacing: 0.05em;
       border-radius: 99px;
       border: 1px solid rgba(225,29,72,0.18);
       white-space: nowrap;
   }
   
   /* ── TÁBLÁZATOK ───────────────────────────────────────────── */
   .table-container {
       width: 100%;
       overflow-x: auto;
       -webkit-overflow-scrolling: touch;
       border: 1px solid var(--border-light);
       border-radius: var(--radius-sm);
   }
   
   .data-table {
       width: 100%;
       border-collapse: collapse;
       text-align: left;
       min-width: 400px; /* Mobilon vízszintes görgetés */
   }
   .data-table th {
       background: var(--surface-hover);
       padding: 0.75rem 1.25rem;
       font-size: 0.72rem;
       text-transform: uppercase;
       letter-spacing: 0.05em;
       color: var(--text-secondary);
       font-weight: 600;
       border-bottom: 1.5px solid var(--border-light);
       white-space: nowrap;
   }
   .data-table td {
       padding: 0.85rem 1.25rem;
       border-bottom: 1px solid var(--border-light);
       color: var(--text-primary);
       font-size: 0.88rem;
       vertical-align: middle;
   }
   .data-table tr:last-child td { border-bottom: none; }
   .data-table tr:hover td { background: var(--surface-main); }
   
   /* ── RESZPONZÍV ALAPGRID ──────────────────────────────────── */
   .grid-2 {
       display: grid;
       grid-template-columns: 1fr 1fr;
       gap: 1.5rem;
   }
   @media (max-width: 680px) {
       .grid-2 { grid-template-columns: 1fr; }
   }
   
   /* ── RESZPONZÍV SEGÉDOSZTÁLYOK ────────────────────────────── */
   @media (max-width: 640px) {
       .hide-mobile { display: none !important; }
   }
   @media (min-width: 641px) {
       .hide-desktop { display: none !important; }
   }