/* css/style.css - EduTest Pro - Minimal clean design 2025 */

:root {
  --primary:    #00b894;     /* main green */
  --primary-dark: #00a376;
  --primary-light: #e6fff5;
  --secondary:  #2d3436;     /* dark gray */
  --text:       #2d3436;
  --text-light: #636e72;
  --bg:         #f5f6fa;
  --white:      #ffffff;
  --danger:     #e74c3c;
  --success:    #27ae60;
  --warning:    #f39c12;
  --gray:       #dfe6e9;
  --border:     #dfe6e9;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.12);
  --radius:     12px;
  --transition: all 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ─── Layout ──────────────────────────────────────────────── */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 1.5rem 0;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}

footer {
  background: var(--secondary);
  color: #bdc3c7;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* ─── Typography ───────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 2.4rem; margin-bottom: 0.8rem; }
h2 { font-size: 1.9rem; margin: 2rem 0 1rem; }
h3 { font-size: 1.5rem; margin: 1.8rem 0 0.8rem; }

.text-center { text-align: center; }
.text-muted  { color: var(--text-light); }

/* ─── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* ─── Cards ───────────────────────────────────────────────── */

.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
}

.card-header {
  padding: 1rem 1.8rem;
  border-bottom: 1px solid var(--border);
  margin: -1.8rem -1.8rem 1.2rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

/* ─── Forms ───────────────────────────────────────────────── */

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,184,148,0.15);
}

/* ─── Toast ───────────────────────────────────────────────── */

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 380px;
}

.toast {
  background: var(--secondary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateX(120%);
  transition: all 0.4s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
.toast.info    { background: var(--primary); }

/* ─── Login Page Specific ─────────────────────────────────── */

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f9f6 0%, #e6fff5 100%);
}

.login-card {
  max-width: 480px;
  width: 100%;
  text-align: center;
  padding: 3rem 2.5rem;
}

.logo {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}

.login-card h2 {
  margin-bottom: 2rem;
  color: var(--text);
}

.google-btn {
  background: #4285F4;
  color: white;
  width: 100%;
  max-width: 320px;
  margin: 1.5rem auto;
  font-size: 1.1rem;
  padding: 0.9rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: none;
  cursor: pointer;
}

.google-btn img {
  height: 24px;
  background: white;
  border-radius: 2px;
  padding: 4px;
}

/* ─── Responsive ───────────────────────────────────────────── */

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  h1 { font-size: 2rem; }
  .card { padding: 1.4rem; }
}