:root {
  --primary: #FF0000;
  --primary-dark: #CC0000;
  --primary-light: #FF6666;
  --secondary: #0066FF;
  --secondary-dark: #0052CC;
  --background: #ffffff;
  --surface: #f8f9fa;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --border: #ecf0f1;
  --success: #27ae60;
  --warning: #f39c12;
  --error: #FF0000;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  -webkit-text-size-adjust: 100%;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Header & Navigation moved to ../shared/topbar-admin-sync.css */

.content {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
}

.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 60px 32px;
  text-align: center;
}

.page-header h1 {
  font-size: 42px;
  margin: 0;
}

.page-content {
  flex-grow: 1;
  padding: 60px 32px;
  max-width: none;
  width: 100%;
  margin: 0;
}

.placeholder {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 60px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 18px;
}

.auth-card {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  display: block;
}

.auth-card-wide {
  max-width: 920px;
}

.auth-head {
  margin-bottom: 18px;
}

.auth-head h1 {
  font-size: 28px;
  margin: 0 0 6px;
  color: var(--text-primary);
}

.auth-head p {
  margin: 0;
  color: var(--text-secondary);
}

.auth-state {
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.auth-state p {
  margin: 0 0 4px;
}

.auth-state p:last-child {
  margin-bottom: 0;
}

.auth-state.is-logged {
  border-color: rgba(39,174,96,0.35);
  background: rgba(39,174,96,0.08);
}

.auth-tabs {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}

.auth-tab {
  border: none;
  background: transparent;
  color: var(--text-primary);
  width: 100%;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--primary);
  display: flex !important;
}

.hidden {
  display: none !important;
}
.auth-alert {
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-weight: 600;
}

.auth-alert.success {
  background: rgba(39,174,96,0.12);
  border: 1px solid rgba(39,174,96,0.35);
  color: var(--success);
}

.auth-alert.error {
  background: rgba(255,0,0,0.08);
  border: 1px solid rgba(255,0,0,0.3);
  color: var(--error);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: flex;
}

.auth-card .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.auth-card .form-row label {
  font-weight: 600;
  color: var(--text-primary);
}

.auth-card .form-row input,
.auth-card .form-row select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--text-primary);
  background: #fff;
}

.auth-card .form-row input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  height: 44px;
  line-height: 1.2;
}

.auth-card .form-row input:focus,
.auth-card .form-row select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 74px;
}

.toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  cursor: pointer;
}

.auth-meta-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.auth-link {
  color: var(--secondary-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.auth-link:hover {
  text-decoration: underline;
}

.toggle-password:hover {
  border-color: var(--secondary);
}

.auth-actions {
  margin-top: 6px;
}

.auth-switch {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-switch a {
  color: var(--secondary-dark);
  font-weight: 700;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.btn-primary {
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 16px;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  cursor: pointer;
  margin-top: 8px;
}

/* ============== Footer ============== */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 60px 32px 24px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  max-width: none;
  width: 100%;
  margin: 0 0 40px;
}

.footer-col h4 {
  margin-bottom: 16px;
  font-size: 16px;
}

.footer-col p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

/* ============== Responsive Design ============== */
@media (max-width: 900px) {
/* Profile dropdown mobile */
.page-header {
    padding: 40px 20px;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .page-content {
    padding: 40px 20px;
  }

  .placeholder {
    padding: 40px;
  }

  .auth-card {
    padding: 22px;
  }

  .auth-head h1 {
    font-size: 24px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
.brand-text {
    font-size: 16px;
  }

  .page-header {
    padding: 30px 16px;
  }

  .page-header h1 {
    font-size: 22px;
  }

  .page-content {
    padding: 30px 16px;
  }

  .placeholder {
    padding: 30px;
    font-size: 16px;
  }

  .auth-card {
    padding: 16px;
    border-radius: 12px;
  }

  .auth-head h1 {
    font-size: 21px;
  }

  .footer {
    padding: 40px 16px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-col h4 {
    font-size: 14px;
  }

  .footer-col p,
  .footer-col a {
    font-size: 13px;
  }
}
