:root{
    --mui-font: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --mui-bg: #0b0d12;
    --mui-card-bg: #11131a;
    --mui-elev: 0 10px 30px rgba(0,0,0,.35);
    --mui-primary: #b7baf4; /* как у Minimal */
    --mui-primary-pressed: #05b0ff;
    --mui-text: #E6E8F0;
    --mui-muted: #9aa3b2;
    --mui-input-bg: #0f1117;
    --mui-input-bd: #222634;
    --mui-input-focus: #2D3650;
    --mui-cover-grad: radial-gradient(1200px 900px at -10% -10%, rgba(0, 167, 111, .18) 0%, rgba(0,0,0,0) 38%),
                      radial-gradient(1000px 800px at 110% 110%, rgba(0, 184, 217, .18) 0%, rgba(0,0,0,0) 40%),
                      linear-gradient(180deg, #0c1017 0%, #0b0d12 100%);
  }
  
  *{box-sizing:border-box}
  html,body{height:100%}
  body.auth-body{
    margin:0;
    font-family:var(--mui-font);
    background:#0b0d12;
    color:var(--mui-text);
  }
  
  /* Флеши */
  .auth-flashes{
    position:fixed; top:16px; right:16px; z-index:1000; display:flex; flex-direction:column; gap:8px;
  }
  .auth-flash{
    padding:10px 14px; border-radius:10px; background:#1b1f2a; color:#fff; box-shadow:var(--mui-elev); font-size:14px;
    border:1px solid #2a3142;
  }
  .auth-flash-success{ border-color: #3407c8; background:#0f2a22; }
  .auth-flash-info{ border-color: #2a5ea6; background:#0e223c; }
  .auth-flash-warning{ border-color: #a67f2a; background:#2c230e; }
  .auth-flash-danger, .auth-flash-error{ border-color: #a62a3b; background:#2c0e15; }
  
  /* Контейнер */
  .auth-wrapper{
    min-height:100vh;
    display:grid;
    grid-template-columns: 1fr;
  }
  @media (min-width: 992px){
    .auth-wrapper{ grid-template-columns: 1.1fr 1fr; }
  }
  
  /* Левая панель (cover) */
  .auth-cover{
    background: var(--mui-cover-grad);
    position:relative;
    overflow:hidden;
  }
  .auth-cover::before,
  .auth-cover::after{
    content:"";
    position:absolute;
    border-radius:50%;
    filter: blur(60px);
    opacity:.35;
  }
  .auth-cover::before{
    width:520px; height:520px; left:-120px; top:-140px; background: #3304f2;
  }
  .auth-cover::after{
    width:420px; height:420px; right:-100px; bottom:-120px; background: #6900d9ad;
  }
  
  .auth-cover-content{
    padding:48px;
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
  }
  .brand{ display:flex; align-items:center; gap:14px; }
  .brand-logo{
    width:42px; height:42px; border-radius:12px;
    background:#00A76F; color:#051814; font-weight:800; font-size:22px;
    display:grid; place-items:center; box-shadow:0 10px 30px rgba(0,167,111,.35);
  }
  .brand-text{line-height:1}
  .brand-title{font-weight:700; letter-spacing:.2px}
  .brand-subtitle{color:#b9c2cf; font-size:13px}
  
  .cover-heading h1{ font-weight:700; margin:0 0 8px }
  .cover-heading p{ color:var(--mui-muted); margin:0; max-width:460px }
  
  /* Правая панель (форма) */
  .auth-content{
    display:grid; place-items:center; padding:40px 24px;
  }
  .auth-card{
    width:100%; max-width: 440px;
    background: var(--mui-card-bg);
    border:1px solid #202535;
    border-radius:18px;
    box-shadow: var(--mui-elev);
    padding:28px;
    animation: cardIn .35s ease-out;
  }
  @keyframes cardIn{ from{ transform: translateY(12px); opacity:0 } to{ transform: translateY(0); opacity:1 } }
  
  .auth-card-header h2{
    font-weight:700; margin:0 0 6px;
  }
  .auth-card-header .muted{
    margin:0 0 18px; color:var(--mui-muted);
  }
  
  /* Поля ввода */
  .mui-field{ margin-bottom:16px; }
  .mui-label{ display:block; margin-bottom:6px; font-size:13px; color:#a7b0bf }
  .mui-input{
    width:100%;
    background: var(--mui-input-bg);
    color: var(--mui-text);
    border:1px solid var(--mui-input-bd);
    border-radius:12px;
    padding:12px 14px;
    outline:none;
    transition: border-color .15s ease, box-shadow .15s ease;
  }
  .mui-input::placeholder{ color:#758099 }
  .mui-input:focus{
    border-color: var(--mui-input-focus);
    box-shadow: 0 0 0 3px rgba(45,54,80,.25);
  }
  
  /* Поле с иконкой справа */
  .mui-input-adorned{
    position:relative;
  }
  .mui-input-adorned .mui-input{
    padding-right:44px;
  }
  .mui-adornment{
    position:absolute; top:0; right:0; height:100%; width:44px; display:grid; place-items:center;
    border:0; background:transparent; color:#9FB0C8; cursor:pointer;
  }
  .mui-adornment:hover{ color:#cfe2ff }
  
  /* Кнопка */
  .mui-button{
    width:100%; border:0; border-radius:12px; padding:12px 16px; font-weight:700;
    background: var(--mui-primary); color:#04110d; cursor:pointer;
    transition: transform .04s ease, filter .15s ease, background .15s ease;
  }
  .mui-button:hover{ filter: brightness(1.02) }
  .mui-button:active{ transform: translateY(1px); background: var(--mui-primary-pressed); }
  
  /* Подписи */
  .auth-card-footer{ margin-top:14px; display:flex; justify-content:flex-end; }
  .tiny-link{ color:#9fb0c8; font-size:13px; text-decoration:none; }
  .tiny-link:hover{ color:#d8e5ff; text-decoration:underline; }
  
  /* Небольшая адаптация для мобильных */
  @media (max-width: 991.98px){
    .auth-content{ padding:24px 18px; }
    .auth-card{ padding:22px; }
  }
  