/* ============================================
   Strux Labs — Auth & Dashboard Styles
   ============================================ */

/* --- Auth Pages --- */
.auth-page {
  min-height: calc(100vh - 68px - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  background: var(--bg);
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
}

.auth-card h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  text-align: center;
}

.auth-card .auth-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 32px;
  font-size: .95rem;
}

.auth-card .auth-logo {
  text-align: center;
  margin-bottom: 24px;
}

.auth-card .auth-logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-card .auth-logo svg {
  width: 32px;
  height: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  transition: border-color .2s, box-shadow .2s;
  background: var(--bg);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 82, 118, .12);
}

.form-group input::placeholder {
  color: #adb5bd;
}

.form-actions {
  margin-top: 28px;
}

.form-actions .btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  text-align: center;
}

.form-footer {
  text-align: center;
  margin-top: 24px;
  font-size: .9rem;
  color: var(--text-light);
}

.form-footer a {
  font-weight: 600;
}

.form-link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -8px;
  margin-bottom: 8px;
  font-size: .85rem;
}

.error-msg {
  display: none;
  background: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: .9rem;
}

.success-msg {
  display: none;
  background: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: .9rem;
}

/* --- Dashboard Layout --- */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 68px);
}

.dash-sidebar {
  width: 260px;
  background: var(--bg-dark);
  color: rgba(255,255,255,.8);
  padding: 32px 0;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,.08);
}

.dash-sidebar-header {
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 16px;
}

.dash-sidebar-header h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.dash-sidebar-header p {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-nav {
  list-style: none;
}

.dash-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: rgba(255,255,255,.65);
  font-size: .95rem;
  font-weight: 500;
  transition: background .2s, color .2s;
  border-left: 3px solid transparent;
}

.dash-nav li a:hover {
  background: rgba(255,255,255,.06);
  color: var(--white);
}

.dash-nav li a.active {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border-left-color: var(--accent);
}

.dash-nav li a svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.dash-nav-divider {
  height: 1px;
  background: rgba(255,255,255,.1);
  margin: 12px 0;
}

/* --- Dashboard Main Content --- */
.dash-main {
  flex: 1;
  padding: 40px;
  background: var(--bg);
  overflow-y: auto;
}

.dash-main h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.dash-main .dash-subtitle {
  color: var(--text-light);
  margin-bottom: 32px;
  font-size: 1rem;
}

/* --- Dashboard Cards --- */
.dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.dash-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.dash-card h3 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.dash-card .dash-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.dash-card .dash-value.active {
  color: var(--accent-dark);
}

.dash-card .dash-value.inactive {
  color: #dc3545;
}

.dash-card p.dash-detail {
  font-size: .85rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* --- Dashboard Sections (tab panels) --- */
.dash-section {
  display: none;
}

.dash-section.active {
  display: block;
}

/* --- Account Form --- */
.account-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  max-width: 560px;
  box-shadow: var(--shadow);
}

.account-form h2 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.account-form .btn {
  margin-top: 8px;
}

/* --- Subscription Card --- */
.sub-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  max-width: 560px;
  box-shadow: var(--shadow);
}

.sub-card h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.sub-status {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.sub-status.active {
  background: #d1e7dd;
  color: #0f5132;
}

.sub-status.inactive {
  background: #f8d7da;
  color: #842029;
}

.sub-status.trialing {
  background: #fff3cd;
  color: #856404;
}

.sub-details dt {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  margin-top: 12px;
}

.sub-details dd {
  color: var(--text-light);
  font-size: .95rem;
  margin-left: 0;
}

/* --- Placeholder states --- */
.coming-soon {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-light);
}

.coming-soon svg {
  width: 64px;
  height: 64px;
  stroke: var(--border);
  fill: none;
  stroke-width: 1.5;
  margin-bottom: 16px;
}

.coming-soon h2 {
  color: var(--text-light);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .dashboard-layout {
    flex-direction: column;
  }
  .dash-sidebar {
    width: 100%;
    padding: 16px 0;
  }
  .dash-nav li a {
    padding: 10px 20px;
  }
  .dash-main {
    padding: 24px;
  }
}

@media (max-width: 500px) {
  .auth-card {
    padding: 32px 24px;
  }
}
