/* ============================================================
   ALPHA BOOTES ENTERPRISE PLATFORM
   Page-Specific Styles
   ============================================================ */

/* ── Login Page ───────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.login-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.login-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
  animation: bgRotate 30s linear infinite;
}

@keyframes bgRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: var(--sp-3xl);
  background: var(--bg-glass);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-2xl);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
  animation: fadeInUp var(--transition-slow) both;
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--sp-2xl);
  gap: var(--sp-md);
}

.login-logo-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--text-inverse);
  box-shadow: var(--shadow-glow);
}

.login-logo-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: 1px;
}

.login-logo-subtitle {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.login-form .form-group {
  margin-bottom: var(--sp-lg);
}

.login-form input {
  height: 44px;
  font-size: var(--fs-md);
}

.login-submit {
  width: 100%;
  height: 44px;
  font-size: var(--fs-md);
  margin-top: var(--sp-sm);
}

.login-footer {
  text-align: center;
  margin-top: var(--sp-xl);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ── Dashboard Page ───────────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
  margin-bottom: var(--sp-xl);
}

@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-chart-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-xl);
}

@media (max-width: 1024px) {
  .dashboard-chart-row {
    grid-template-columns: 1fr;
  }
}

.dashboard-welcome {
  padding: var(--sp-xl);
  background: linear-gradient(135deg, var(--bg-card), var(--bg-hover));
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-xl);
  position: relative;
  overflow: hidden;
}

.dashboard-welcome::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 100%;
  background: linear-gradient(135deg, transparent, var(--accent-subtle));
  pointer-events: none;
}

.dashboard-welcome h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-xs);
}

.dashboard-welcome p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

/* ── Detail Page Layout ───────────────────────────────────── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--sp-xl);
}

@media (max-width: 1024px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.detail-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-lg);
}

.detail-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-field-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-field-value {
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}

/* ── Organization Chart ───────────────────────────────────── */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-xl);
  padding: var(--sp-2xl);
}

.org-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  min-width: 200px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.org-node:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.org-node.root {
  border-color: var(--accent-primary);
  background: linear-gradient(135deg, var(--bg-card), var(--accent-subtle));
}

.org-node-name {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

.org-node-type {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.org-children {
  display: flex;
  gap: var(--sp-lg);
  position: relative;
}

.org-children::before {
  content: '';
  position: absolute;
  top: calc(-1 * var(--sp-xl));
  left: 50%;
  width: 1px;
  height: var(--sp-xl);
  background: var(--border-secondary);
}

.org-connector {
  position: relative;
}

.org-connector::before {
  content: '';
  position: absolute;
  top: calc(-1 * var(--sp-xl) / 2);
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-secondary);
}
