/* Auth modals and dashboard */
:root{
  --auth-bg:#071b17;
  --auth-surface:#ffffff;
  --auth-surface-soft:#f6faf8;
  --auth-border:rgba(11,143,112,.16);
  --auth-text:#10312a;
  --auth-muted:#5a7069;
  --auth-accent:#0b8f70;
  --auth-accent-strong:#05755b;
  --auth-accent-soft:#e5f5ef;
  --auth-warm:#ff8a65;
  --auth-shadow:0 24px 80px rgba(7,27,23,.32);
  --auth-radius:28px;
}

.auth-actions{
  display:flex;
  align-items:center;
  gap:12px;
  margin-left:24px;
  flex-shrink:0;
}

.auth-actions--mobile{
  display:none;
  margin:0;
  justify-content:center;
  flex-wrap:wrap;
}

.auth-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:48px;
  padding:0 18px;
  border-radius:999px;
  border:1px solid transparent;
  font-family:inherit;
  font-size:15px;
  font-weight:700;
  letter-spacing:.01em;
  text-decoration:none;
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease,color .2s ease,border-color .2s ease;
  white-space:nowrap;
}

.auth-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}

.auth-btn--ghost{
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.24);
  color:#fff;
}

.auth-btn--solid{
  background:#fff;
  color:var(--auth-accent);
}

.auth-btn--solid:hover,
.auth-btn--ghost:hover{
  color:#fff;
  background:var(--auth-accent);
  border-color:var(--auth-accent);
}

.auth-btn--link{
  background:rgba(255,255,255,.14);
  color:#fff;
  border-color:rgba(255,255,255,.18);
}

.auth-btn--danger{
  background:#fff;
  color:#a03624;
  border-color:rgba(160,54,36,.16);
}

.auth-btn--danger:hover{
  background:#a03624;
  border-color:#a03624;
  color:#fff;
}

.auth-modal{
  position:fixed;
  inset:0;
  z-index:3000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.auth-modal.is-open{
  display:flex;
}

.auth-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(6,20,16,.72);
  backdrop-filter:blur(10px);
}

.auth-modal__dialog{
  position:relative;
  z-index:1;
  width:min(1120px,100%);
  max-height:min(90vh,940px);
  overflow:hidden;
  background:var(--auth-surface);
  border-radius:var(--auth-radius);
  box-shadow:var(--auth-shadow);
  border:1px solid rgba(255,255,255,.5);
}

.auth-modal__close{
  position:absolute;
  top:18px;
  right:18px;
  z-index:4;
  width:44px;
  height:44px;
  border-radius:50%;
  background:rgba(255,255,255,.94);
  color:var(--auth-text);
  font-size:30px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 12px 24px rgba(7,27,23,.14);
}

.auth-modal__grid{
  display:grid;
  grid-template-columns:minmax(280px,.92fr) minmax(360px,1.08fr);
  min-height:640px;
}

.auth-modal__visual{
  position:relative;
  background:linear-gradient(160deg,#0c2b23 0%,#0d6d56 45%,#13a07c 100%);
  color:#fff;
  padding:32px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  overflow:hidden;
}

.auth-modal__visual::before,
.auth-modal__visual::after{
  content:'';
  position:absolute;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  pointer-events:none;
}

.auth-modal__visual::before{
  width:260px;
  height:260px;
  right:-110px;
  top:-70px;
}

.auth-modal__visual::after{
  width:180px;
  height:180px;
  left:-60px;
  bottom:-50px;
}

.auth-modal__visual-image{
  position:relative;
  z-index:1;
  border-radius:24px;
  overflow:hidden;
  min-height:320px;
  box-shadow:0 24px 48px rgba(0,0,0,.22);
}

.auth-modal__visual-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.auth-modal__visual-copy{
  position:relative;
  z-index:1;
  padding-top:24px;
}

.auth-modal__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:16px;
}

.auth-modal__eyebrow-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#9ff1d8;
  box-shadow:0 0 0 8px rgba(159,241,216,.12);
}

.auth-modal__visual-title{
  font-size:clamp(32px,5vw,56px);
  line-height:.95;
  letter-spacing:-.04em;
  margin-bottom:14px;
}

.auth-modal__visual-text{
  font-size:16px;
  line-height:1.7;
  color:rgba(255,255,255,.84);
  max-width:32ch;
}

.auth-modal__content{
  padding:28px;
  background:linear-gradient(180deg,#fff 0%,#f8fbfa 100%);
  display:flex;
  flex-direction:column;
  gap:20px;
}

.auth-modal__tabs{
  display:flex;
  gap:12px;
  padding:6px;
  border-radius:18px;
  background:var(--auth-accent-soft);
  width:max-content;
}

.auth-tab{
  min-width:138px;
  padding:13px 18px;
  border-radius:14px;
  background:transparent;
  color:var(--auth-muted);
  font-size:15px;
  font-weight:800;
  transition:background .2s ease,color .2s ease,box-shadow .2s ease;
}

.auth-tab.is-active{
  background:#fff;
  color:var(--auth-accent);
  box-shadow:0 10px 24px rgba(11,143,112,.12);
}

.auth-panel{
  display:none;
  flex:1;
  min-height:0;
}

.auth-panel.is-active{
  display:flex;
  flex-direction:column;
}

.auth-panel__title{
  font-size:clamp(28px,3.6vw,42px);
  line-height:1.02;
  letter-spacing:-.04em;
  color:var(--auth-text);
  margin-bottom:10px;
}

.auth-panel__subtitle{
  font-size:15px;
  line-height:1.7;
  color:var(--auth-muted);
  max-width:42ch;
  margin-bottom:24px;
}

.auth-form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.auth-form__grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.auth-field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.auth-field--full{
  grid-column:1 / -1;
}

.auth-field__label{
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--auth-text);
}

.auth-field__input,
.auth-field__textarea{
  width:100%;
  min-height:48px;
  border-radius:16px;
  border:1px solid var(--auth-border);
  background:#fff;
  color:var(--auth-text);
  padding:0 16px;
  font:inherit;
  font-size:15px;
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}

.auth-field__textarea{
  min-height:110px;
  padding:14px 16px;
  resize:vertical;
}

.auth-field__input:focus,
.auth-field__textarea:focus{
  outline:none;
  border-color:rgba(11,143,112,.5);
  box-shadow:0 0 0 4px rgba(11,143,112,.14);
}

.auth-field__note,
.auth-field__error{
  font-size:12px;
  line-height:1.5;
}

.auth-field__note{
  color:var(--auth-muted);
}

.auth-field__error{
  color:var(--auth-warm);
  font-weight:700;
}

.auth-form__actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:8px;
  flex-wrap:wrap;
}

.auth-submit{
  min-width:180px;
  min-height:52px;
  border-radius:16px;
  background:linear-gradient(135deg,var(--auth-accent) 0%,var(--auth-accent-strong) 100%);
  color:#fff;
  font-size:15px;
  font-weight:800;
  box-shadow:0 18px 30px rgba(11,143,112,.24);
}

.auth-submit:hover{
  box-shadow:0 20px 34px rgba(11,143,112,.3);
}

.auth-form__switch{
  font-size:14px;
  color:var(--auth-muted);
}

.auth-form__switch button,
.auth-form__switch a{
  color:var(--auth-accent);
  font-weight:800;
}

.auth-form__switch button:hover,
.auth-form__switch a:hover{
  text-decoration:underline;
}

.auth-status{
  min-height:20px;
  font-size:14px;
  font-weight:700;
  color:var(--auth-accent-strong);
}

.auth-status.is-error{
  color:var(--auth-warm);
}

.auth-panel__footer{
  margin-top:auto;
  padding-top:18px;
  border-top:1px solid rgba(16,49,42,.08);
  color:var(--auth-muted);
  font-size:13px;
  line-height:1.6;
}

.auth-panel__footer strong{
  color:var(--auth-text);
}

.smp-dashboard{
  padding:32px 0 80px;
}

.smp-dashboard__hero{
  background:linear-gradient(145deg,#052720 0%,#0a6750 55%,#14a07d 100%);
  color:#fff;
  border-radius:32px;
  overflow:hidden;
  position:relative;
  box-shadow:0 24px 60px rgba(6,20,16,.18);
}

.smp-dashboard__hero::before,
.smp-dashboard__hero::after{
  content:'';
  position:absolute;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  pointer-events:none;
}

.smp-dashboard__hero::before{
  width:260px;
  height:260px;
  right:-110px;
  top:-90px;
}

.smp-dashboard__hero::after{
  width:170px;
  height:170px;
  left:8%;
  bottom:-70px;
}

.smp-dashboard__hero-inner{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);
  gap:28px;
  align-items:center;
  padding:36px;
}

.smp-dashboard__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:16px;
}

.smp-dashboard__title{
  font-size:clamp(34px,5vw,64px);
  line-height:.94;
  letter-spacing:-.05em;
  margin-bottom:14px;
}

.smp-dashboard__lead{
  font-size:18px;
  line-height:1.7;
  color:rgba(255,255,255,.82);
  max-width:42ch;
}

.smp-dashboard__card{
  background:rgba(255,255,255,.94);
  color:var(--auth-text);
  border-radius:28px;
  padding:24px;
  box-shadow:0 16px 44px rgba(0,0,0,.18);
}

.smp-dashboard__card-top{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:20px;
}

.smp-dashboard__avatar{
  width:84px;
  height:84px;
  border-radius:24px;
  overflow:hidden;
  background:linear-gradient(180deg,#dff6ef,#b8ead9);
  flex-shrink:0;
}

.smp-dashboard__avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.smp-dashboard__identity{
  min-width:0;
}

.smp-dashboard__name{
  font-size:22px;
  line-height:1.15;
  font-weight:900;
  color:var(--auth-text);
  margin-bottom:4px;
}

.smp-dashboard__email{
  font-size:14px;
  color:var(--auth-muted);
  word-break:break-word;
}

.smp-dashboard__meta{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.smp-dashboard__meta-item{
  background:var(--auth-surface-soft);
  border:1px solid var(--auth-border);
  border-radius:18px;
  padding:14px;
}

.smp-dashboard__meta-label{
  display:block;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--auth-muted);
  margin-bottom:6px;
}

.smp-dashboard__meta-value{
  font-size:14px;
  line-height:1.45;
  font-weight:700;
  color:var(--auth-text);
}

.smp-dashboard__grid{
  display:grid;
  grid-template-columns:minmax(320px,.95fr) minmax(0,1.05fr);
  gap:24px;
  margin-top:24px;
}

.smp-dashboard__section{
  background:#fff;
  border:1px solid rgba(11,143,112,.14);
  border-radius:28px;
  padding:28px;
  box-shadow:0 16px 40px rgba(7,27,23,.06);
}

.smp-dashboard__section-title{
  font-size:24px;
  line-height:1.12;
  letter-spacing:-.04em;
  color:var(--auth-text);
  margin-bottom:10px;
}

.smp-dashboard__section-text{
  color:var(--auth-muted);
  line-height:1.7;
  margin-bottom:24px;
  max-width:52ch;
}

.smp-dashboard__preview{
  border-radius:24px;
  overflow:hidden;
  aspect-ratio:4 / 3;
  background:linear-gradient(145deg,#e8faf4,#c9efdf);
  margin-bottom:18px;
}

.smp-dashboard__preview img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.smp-dashboard__upload{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:18px;
}

.smp-dashboard__upload input{
  width:100%;
  border-radius:16px;
  border:1px dashed rgba(11,143,112,.32);
  padding:12px 14px;
  background:var(--auth-surface-soft);
}

.smp-dashboard__hint{
  font-size:13px;
  line-height:1.55;
  color:var(--auth-muted);
}

.smp-dashboard__form{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.smp-dashboard__form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.smp-dashboard__field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.smp-dashboard__field--full{
  grid-column:1 / -1;
}

.smp-dashboard__field label{
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--auth-text);
}

.smp-dashboard__field input,
.smp-dashboard__field textarea{
  width:100%;
  border-radius:16px;
  border:1px solid var(--auth-border);
  padding:14px 16px;
  font:inherit;
  color:var(--auth-text);
  background:#fff;
  transition:border-color .2s ease,box-shadow .2s ease;
}

.smp-dashboard__field textarea{
  min-height:150px;
  resize:vertical;
}

.smp-dashboard__field input:focus,
.smp-dashboard__field textarea:focus{
  outline:none;
  border-color:rgba(11,143,112,.5);
  box-shadow:0 0 0 4px rgba(11,143,112,.14);
}

.smp-dashboard__actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:6px;
}

.smp-dashboard__save{
  min-width:180px;
  min-height:52px;
  border-radius:16px;
  background:linear-gradient(135deg,var(--auth-accent) 0%,var(--auth-accent-strong) 100%);
  color:#fff;
  font-size:15px;
  font-weight:800;
  box-shadow:0 18px 30px rgba(11,143,112,.24);
}

.smp-dashboard__save:hover{
  box-shadow:0 20px 34px rgba(11,143,112,.3);
}

.smp-dashboard__secondary{
  min-width:180px;
  min-height:52px;
  border-radius:16px;
  background:var(--auth-surface-soft);
  border:1px solid var(--auth-border);
  color:var(--auth-text);
  font-size:15px;
  font-weight:800;
}

.smp-dashboard__status{
  min-height:20px;
  font-size:14px;
  font-weight:700;
  color:var(--auth-accent-strong);
}

.smp-dashboard__status.is-error{
  color:var(--auth-warm);
}

.smp-dashboard__stack{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.smp-dashboard__inline-card{
  background:linear-gradient(180deg,#fff 0%,#f3fbf7 100%);
  border:1px solid rgba(11,143,112,.14);
  border-radius:22px;
  padding:18px;
}

.smp-dashboard__inline-label{
  display:block;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--auth-muted);
  margin-bottom:8px;
}

.smp-dashboard__inline-value{
  font-size:15px;
  line-height:1.6;
  color:var(--auth-text);
}

@media(max-width:980px){
  .auth-modal__dialog{
    max-height:calc(100vh - 24px);
  }

  .auth-modal__grid,
  .smp-dashboard__hero-inner,
  .smp-dashboard__grid{
    grid-template-columns:1fr;
  }

  .auth-modal__visual{
    min-height:320px;
  }

  .smp-dashboard__meta{
    grid-template-columns:1fr;
  }
}

@media(max-width:820px){
  .auth-actions{
    display:none;
  }

  .auth-actions--mobile{
    display:flex;
  }

  .auth-modal{
    padding:12px;
  }

  .auth-modal__dialog,
  .smp-dashboard__hero,
  .smp-dashboard__section{
    border-radius:24px;
  }

  .auth-modal__content,
  .auth-modal__visual,
  .smp-dashboard__hero-inner,
  .smp-dashboard__section{
    padding:20px;
  }

  .auth-modal__tabs{
    width:100%;
  }

  .auth-tab{
    flex:1;
    min-width:0;
  }

  .auth-form__grid,
  .smp-dashboard__form-grid{
    grid-template-columns:1fr;
  }

  .auth-form__actions,
  .smp-dashboard__actions{
    flex-direction:column;
    align-items:stretch;
  }

  .auth-submit,
  .smp-dashboard__save,
  .smp-dashboard__secondary{
    width:100%;
  }
}

@media(max-width:560px){
  .auth-modal__visual-image{
    min-height:240px;
  }

  .auth-modal__visual-title,
  .smp-dashboard__title{
    font-size:clamp(28px,10vw,42px);
  }

  .smp-dashboard{
    padding-top:20px;
  }
}
