@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap");

/* =========================================================
   Base
========================================================= */

:root {
  --page-bg-start: #0f172a;
  --page-bg-end: #1e293b;

  --surface: rgba(15, 23, 42, 0.56);
  --surface-light: rgba(255, 255, 255, 0.07);
  --surface-hover: rgba(255, 255, 255, 0.1);

  --border: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.07);

  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-soft: #cbd5e1;

  --accent: #0ea5e9;
  --accent-dark: #0284c7;
  --accent-light: #38bdf8;

  --success: #34d399;
  --warning: #fbbf24;
  --danger: #fb7185;
}

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

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 31%),
    radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.13), transparent 30%),
    linear-gradient(135deg, var(--page-bg-start) 0%, var(--page-bg-end) 100%);
  font-family: "Vazirmatn", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* =========================================================
   Login / Signup - Original Styles
========================================================= */

.container {
  position: relative;
  width: 480px;
  min-height: 480px;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  margin: auto;
  transition: min-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.container.signup-mode {
  min-height: 620px;
}

.orb {
  position: absolute;
  inset: 0;
  min-height: 480px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.container.signup-mode .orb {
  min-height: 620px;
}

.orb-1 {
  border-radius: 42% 58% 60% 40% / 45% 48% 52% 55%;
  animation: rotate-clockwise 8s ease-in-out infinite;
}

.orb-2 {
  border-radius: 55% 45% 48% 52% / 60% 40% 58% 42%;
  animation: rotate-counter 6s ease-in-out infinite;
}

.orb-3 {
  border-radius: 48% 52% 45% 55% / 58% 42% 60% 40%;
  animation: rotate-clockwise 12s linear infinite;
}

.container:hover .orb {
  border-width: 4px;
  border-color: var(--orb-color, rgba(255, 255, 255, 0.3));
  filter: drop-shadow(0 0 25px var(--orb-color, rgba(255, 255, 255, 0.2)));
  opacity: 0.9;
}

.container.signup-mode .orb-1 {
  --orb-color: #10b981;
}

.container.signup-mode .orb-2 {
  --orb-color: #8b5cf6;
}

.container.signup-mode .orb-3 {
  --orb-color: #f97316;
}

@keyframes rotate-clockwise {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.05);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes rotate-counter {
  0% {
    transform: rotate(360deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(0.95);
  }

  100% {
    transform: rotate(0deg) scale(1);
  }
}

.forms-wrapper {
  position: relative;
  width: 320px;
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: min-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form {
  position: absolute;
  width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 10;
  opacity: 0;
  transform: translateX(50px) scale(0.9);
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: all;
}

.login-form {
  transform: translateX(50px) scale(0.9);
}

.login-form.active {
  transform: translateX(0) scale(1);
}

.signup-form {
  transform: translateX(-50px) scale(0.9);
}

.signup-form.active {
  transform: translateX(0) scale(1);
}

.form-title {
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.field-wrapper {
  position: relative;
  width: 100%;
}

.field-wrapper input {
  width: 100%;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: #ffffff;
  font-size: 1.1rem;
  font-family: inherit;
  outline: none;
  transition: all 0.3s ease;
}

.field-wrapper input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.field-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #0ea5e9 0%, #ec4899 50%, #f59e0b 100%);
  border: none;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  box-shadow: 0 6px 25px rgba(14, 165, 233, 0.5);
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: translateY(0);
}

.form-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.role-wrapper {
  margin-top: -6px;
}

.role-group {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.role-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  user-select: none;
  transition: all 0.25s ease;
}

.role-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.role-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.role-chip span {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.2px;
}

.role-chip:has(input:checked) {
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.22) 0%,
    rgba(236, 72, 153, 0.18) 55%,
    rgba(245, 158, 11, 0.18) 100%
  );
  border-color: rgba(14, 165, 233, 0.55);
  box-shadow:
    0 10px 30px rgba(14, 165, 233, 0.12),
    0 0 20px rgba(236, 72, 153, 0.1);
  color: #ffffff;
}

.role-chip:has(input:focus-visible) {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 3px;
}

/* =========================================================
   Utility classes used by teacher_assignment_submissions.html
========================================================= */

.min-h-screen {
  min-height: 100vh;
}

.p-4 {
  padding: 1rem;
}

.p-5 {
  padding: 1.25rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.p-12 {
  padding: 3rem;
}

.p-16 {
  padding: 4rem;
}

.px-3 {
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

.px-4 {
  padding-right: 1rem;
  padding-left: 1rem;
}

.px-6 {
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-5 {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mx-auto {
  margin-right: auto;
  margin-left: auto;
}

.w-full {
  width: 100%;
}

.min-w-full {
  min-width: 100%;
}

.h-4 {
  height: 1rem;
}

.w-4 {
  width: 1rem;
}

.h-5 {
  height: 1.25rem;
}

.w-5 {
  width: 1.25rem;
}

.h-16 {
  height: 4rem;
}

.w-16 {
  width: 4rem;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

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

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

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

.justify-center {
  justify-content: center;
}

.grid {
  display: grid;
}

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

.gap-1 {
  gap: 0.25rem;
}

.gap-1\.5 {
  gap: 0.375rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.5rem;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-3xl {
  border-radius: 1.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

.border {
  border-width: 1px;
  border-style: solid;
}

.border-white\/10 {
  border-color: rgba(255, 255, 255, 0.1);
}

.border-white\/20 {
  border-color: rgba(255, 255, 255, 0.2);
}

.border-emerald-500\/20 {
  border-color: rgba(16, 185, 129, 0.2);
}

.border-amber-500\/20 {
  border-color: rgba(245, 158, 11, 0.2);
}

.border-rose-500\/20 {
  border-color: rgba(244, 63, 94, 0.2);
}

.bg-white\/5 {
  background-color: rgba(255, 255, 255, 0.05);
}

.bg-white\/10 {
  background-color: rgba(255, 255, 255, 0.1);
}

.bg-white\/20 {
  background-color: rgba(255, 255, 255, 0.2);
}

.bg-white\/30 {
  background-color: rgba(255, 255, 255, 0.3);
}

.bg-white\/40 {
  background-color: rgba(255, 255, 255, 0.4);
}

.bg-white\/50 {
  background-color: rgba(255, 255, 255, 0.5);
}

.bg-emerald-500\/10 {
  background-color: rgba(16, 185, 129, 0.1);
}

.bg-amber-500\/10 {
  background-color: rgba(245, 158, 11, 0.1);
}

.bg-rose-500\/10 {
  background-color: rgba(244, 63, 94, 0.1);
}

.bg-accent-600 {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
}

.backdrop-blur-md {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.backdrop-blur-xl {
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.shadow-card {
  box-shadow: 0 16px 45px rgba(2, 6, 23, 0.22);
}

.shadow-glow {
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.24);
}

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

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

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.4rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.65rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.8rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2.1rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.4rem;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-black {
  font-weight: 900;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wider {
  letter-spacing: 0.04em;
}

.text-white {
  color: #ffffff;
}

.text-ink-900 {
  color: #f8fafc;
}

.text-ink-800 {
  color: #e2e8f0;
}

.text-ink-700 {
  color: #cbd5e1;
}

.text-ink-600 {
  color: #cbd5e1;
}

.text-ink-500 {
  color: #94a3b8;
}

.text-ink-400 {
  color: #94a3b8;
}

.text-ink-300 {
  color: #cbd5e1;
}

.text-emerald-400,
.text-emerald-600 {
  color: var(--success);
}

.text-amber-400,
.text-amber-600 {
  color: var(--warning);
}

.text-rose-400,
.text-rose-600 {
  color: var(--danger);
}

.text-accent-400,
.text-accent-500,
.text-accent-600 {
  color: var(--accent-light);
}

.transition-all,
.transition-colors,
.transition-transform {
  transition: 0.2s ease;
}

.hover\:bg-white\/5:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.hover\:bg-white\/10:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hover\:bg-white\/20:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.hover\:bg-ink-50:hover,
.hover\:bg-ink-800:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hover\:bg-accent-500:hover {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
}

.hover\:text-accent-500:hover,
.hover\:text-accent-300:hover {
  color: #7dd3fc;
}

.hover\:underline:hover {
  text-decoration: underline;
}

.hover\:scale-\[1\.02\]:hover {
  transform: scale(1.02);
}

.divide-y > :not([hidden]) ~ :not([hidden]) {
  border-top-width: 1px;
  border-top-style: solid;
}

.divide-white\/5 > :not([hidden]) ~ :not([hidden]) {
  border-top-color: rgba(255, 255, 255, 0.05);
}

.divide-white\/10 > :not([hidden]) ~ :not([hidden]) {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.divide-white\/20 > :not([hidden]) ~ :not([hidden]) {
  border-top-color: rgba(255, 255, 255, 0.2);
}

/* =========================================================
   Assignments page: visual enhancement
========================================================= */

.min-h-screen.p-4 {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.min-h-screen > .rounded-2xl,
.min-h-screen > .rounded-3xl {
  background: linear-gradient(
    135deg,
    rgba(30, 41, 59, 0.78),
    rgba(15, 23, 42, 0.58)
  );
  border-color: var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

thead {
  background: rgba(255, 255, 255, 0.045);
}

th {
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

td,
th {
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr {
  transition: background-color 0.2s ease;
}

tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.055);
}

svg {
  display: block;
  flex-shrink: 0;
}

/* =========================================================
   Responsive
========================================================= */

@media (min-width: 640px) {
  .sm\:p-8 {
    padding: 2rem;
  }

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

  .sm\:flex-row {
    flex-direction: row;
  }

  .sm\:items-center {
    align-items: center;
  }

  .sm\:justify-between {
    justify-content: space-between;
  }

  .sm\:w-auto {
    width: auto;
  }
}

@media (min-width: 1024px) {
  .lg\:flex-row {
    flex-direction: row;
  }

  .lg\:items-center {
    align-items: center;
  }

  .lg\:justify-between {
    justify-content: space-between;
  }
}

@media (max-width: 639px) {
  .container {
    width: min(100% - 32px, 480px);
  }

  .min-h-screen.p-4 {
    padding: 1rem;
  }

  .p-12,
  .p-16 {
    padding: 2rem 1.25rem;
  }

  .px-6 {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  table {
    min-width: 760px;
  }
}
