:root {
  --bg: #f5f8fc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --green: #10b981;
  --radius: 24px;
  --shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.08);
  --transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

body {
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

.bg-spot {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.spot-1 { top: -10%; left: -5%; width: 500px; height: 500px; background: rgba(59, 130, 246, 0.08); }
.spot-2 { bottom: -10%; right: -5%; width: 600px; height: 600px; background: rgba(139, 92, 246, 0.06); }

.main-screen {
  flex: 1;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 480px;
  gap: 60px;
  align-items: center;
  margin-top: 200px;
  margin-bottom: 50px;
}


.hero-left {
  display: flex;
  flex-direction: column;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #eff6ff;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 99px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 24px;
  width: max-content;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.auth-card-h1 {
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 20px;
}
.auth-card-h1 span {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 580px;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.promo-box {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
  transition: var(--transition);
}
.promo-box:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.08);
}

.promo-icon {
  width: 38px;
  height: 38px;
  background: #f1f5f9;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 17px;
  margin-bottom: 14px;
}

.promo-box h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.promo-box p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.auth-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  position: relative;
}

.card-top-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 24px;
}
.card-top-badge svg { color: var(--accent); flex-shrink: 0; }
.card-top-badge strong { display: block; font-size: 14px; color: var(--text); font-weight: 800; }
.card-top-badge span { font-size: 12px; color: var(--muted); }

.brand-logo-center {
  text-align: center;
  margin-bottom: 24px;
}
.brand-logo-center img{
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
  margin-bottom: 12px;
}
.brand-logo-center h2 { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.brand-logo-center p { font-size: 13px; color: var(--muted); }


.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 24px;
}
.auth-tab-btn {
  height: 40px;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}
.auth-tab-btn.active {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.forgot-link {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
}
.forgot-link:hover { text-decoration: underline; }

.submit-btn {
  width: 100%;
  height: 48px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
  margin-top: 6px;
}
.submit-btn:hover {
  background: var(--accent);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}

.policy-text {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.policy-text a { color: var(--text); text-decoration: underline; }

.cabinet-wrapper {
  display: none;
  width: min(1160px, calc(100% - 40px));
  margin: 20px auto 60px;
  flex: 1;
}

.cabinet-header {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.cab-user h2 { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.cab-user p { font-size: 13px; color: var(--muted); }

.cab-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.cab-tab-btn {
  padding: 10px 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.cab-tab-btn.active, .cab-tab-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cab-content { display: none; }
.cab-content.active { display: block; }

.dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.panel-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.panel-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 1024px) {
  .main-screen { grid-template-columns: 1fr; gap: 40px; margin-top:40px!important; }
  .dash-grid { grid-template-columns: 1fr; }
  .main-screen { margin-top:15px!important; }
}
@media (max-width: 600px) {
  .promo-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 24px; }
}

.submit-btn .spinner-border{
    width: 14px; height: 14px; border-width: 2px; margin-right: 5px;
}

/* xs (<=543px) */
@media (max-width: 575px) {

  .main-screen { margin-top:40px!important; }

}

/* sm (>=576 и <=767) */
@media (min-width: 576px) and (max-width: 767px) {
    
  .main-screen { margin-top:40px!important; }

}

/* md (>=768 и <=991) */
@media (min-width: 768px) and (max-width: 991px) {
  
  .main-screen { margin-top:40px!important; }

}

/* lg (>=992 и <=1199) */
@media (min-width: 992px) and (max-width: 1199px) {

}

/* xl (>=1200) */
@media (min-width: 1200px) {
    

}