﻿/* EDU. NEXA User Theme */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

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

:root {
  --primary: #06b6d4;
  --primary-dark: #0891b2;
  --secondary: #0f172a;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --white: #ffffff;

  --bg-0: #050b19;
  --bg-1: #0c1630;
  --bg-2: #13264a;
  --panel: rgba(15, 24, 46, 0.76);
  --panel-strong: #111e38;
  --border: rgba(148, 163, 184, 0.22);

  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #dbe7ff;
  --gray-300: #b7c6e0;
  --gray-400: #90a3c3;
  --gray-500: #7990b1;
  --gray-600: #c7d6ec;
  --gray-700: #d9e5f6;
  --gray-800: #edf5ff;
  --gray-900: #f8fbff;
}

body {
  font-family: 'Manrope', sans-serif;
  background:
    radial-gradient(1000px 500px at 0% -10%, rgba(6, 182, 212, 0.22), transparent 45%),
    radial-gradient(900px 450px at 100% 0%, rgba(245, 158, 11, 0.14), transparent 40%),
    linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-2) 100%);
  color: var(--gray-700);
  line-height: 1.6;
  min-height: 100vh;
  background-attachment: fixed;
}

html,
body {
  min-height: 100%;
}

html {
  background: var(--bg-0);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.16;
  z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #67e8f9;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.m-0 { margin: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.rounded { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }

.bg-white { background-color: var(--white); }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }

.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.9rem; }
.text-4xl { font-size: 2.4rem; }
.text-5xl { font-size: 3rem; }
.font-bold { font-weight: 700; }
.tracking-widest { letter-spacing: 0.15em; }

.max-w-md { max-width: 28rem; width: 100%; }
.max-w-4xl { max-width: 56rem; width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.transition {
  transition: all 0.25s ease-in-out;
}

.focus\:ring:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.28);
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 20px 36px rgba(4, 10, 25, 0.45);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.auth-header {
  padding: 2rem 2rem 1rem 2rem;
  text-align: center;
}

.auth-title {
  font-size: 1.875rem;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.auth-body {
  padding: 0 2rem 2rem 2rem;
}

.auth-form {
  margin-bottom: 1.5rem;
}

.auth-error {
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: none;
}

.auth-success {
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: none;
  text-align: center;
}

.auth-links {
  text-align: center;
  margin-bottom: 1rem;
}

.auth-link {
  color: #67e8f9;
  font-size: 0.875rem;
  font-weight: 600;
}

.auth-footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--gray-500);
  font-size: 0.875rem;
}

.password-input-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
}

.otp-inputs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.otp-input {
  width: 3rem;
  height: 3rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  background: rgba(13, 24, 48, 0.8);
  transition: border-color 0.2s;
}

.otp-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.22);
}

.otp-timer {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.otp-resend {
  display: block;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.875rem;
  text-decoration: none;
  margin-bottom: 1rem;
  cursor: pointer;
}

.otp-resend.enabled {
  color: #67e8f9;
}

.page-header {
  margin-bottom: 2rem;
  text-align: center;
}

.page-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
}

.error-message {
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-top: 1rem;
  display: none;
}

.btn-loader {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
}

.btn.loading .btn-loader {
  display: inline-block;
}

.btn.loading span {
  opacity: 0;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-full {
  width: 100%;
  justify-content: center;
}

