@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --theme-bg: linear-gradient(to bottom right, #0f0c29, #302b63, #24243e);
  --purple: #6d28d9;
  --purple-light: #a78bfa;
  --text-light: #f1f5f9;
  --input-bg: rgba(255, 255, 255, 0.05);
  --border-light: rgba(255, 255, 255, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--theme-bg);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}




.logo-box {
  text-align: center;
  margin-bottom: 1.5rem;
}
.logo-box img {
  height: 60px;
  max-width: 100%;
  object-fit: contain;
}

/* Login Box */
.login-container {
  width: 100%;
  max-width: 400px;
}

.login-card {
  position: relative;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.login-card h2 {
  font-size: 1.75rem;
  color: var(--purple-light);
  margin-bottom: 0.5rem;
  text-align: center;
}

.subtitle {
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: #d1d5db;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: #e5e7eb;
}

.form-group input {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid var(--border-light);
  background: var(--input-bg);
  color: white;
  border-radius: 8px;
  outline: none;
  transition: border 0.3s;
}

.form-group input:focus {
  border-color: var(--purple);
}

.login-btn {
  width: 100%;
  background-color: var(--purple);
  color: white;
  padding: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-btn:hover {
  background-color: #5b21b6;
}

.bottom-text {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.bottom-text a {
  color: var(--purple-light);
  text-decoration: none;
}
.bottom-text a:hover {
  text-decoration: underline;
}




/* Register Box Styling */

.register-box {
  text-align: center;
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 1rem;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}
.register-box p {
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: #f1f5f9;
}
.register-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #efefef;
  color: #1e1e2f;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
}
.register-btn:hover {
  background-color: #c4b5fd;
}


/* Custom Remember Me Checkbox Styling */
.checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  user-select: none;
  color: #e5e7eb;
  position: relative;
  padding-left: 28px;
  margin-bottom: 1rem;
}

/* Hide default checkbox */
.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Custom box */
.checkmark {
  position: absolute;
  left: 0;
  top: 2px;
  height: 18px;
  width: 18px;
  background-color: rgba(255, 255, 255, 1);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  transition: background 0.2s ease;
}

/* Checkmark on check */
.checkbox-container input:checked ~ .checkmark {
  background-color: darkgreen;
  border-color: var(--purple);
}

/* Create the tick inside the checkbox */
.checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Show the tick when checked */
.checkbox-container input:checked ~ .checkmark::after {
  display: block;
}



/* ===== Reset via Security Question (prominent link) ===== */
.reset-link {
  display: block;
  width: 100%;
  text-align: center;
  margin: 20px 0 0;
  padding: 0.5rem 0.6rem;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;

  border: 1px solid rgba(109, 40, 217, 0.25); /* purple outline */
  border-radius: 10px;

  background: rgba(109, 40, 217, 0);
  color: #efefef; /* light lavender text on dark bg */

  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.08s ease;
}

.reset-link:hover {
  background: rgba(109, 40, 217, 0.25);
  border-color: rgba(109, 40, 217, 0.7);
  color: #ffffff;
}

.reset-link:active {
  transform: translateY(1px);
}

.reset-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.35);
  border-color: rgba(109, 40, 217, 0.85);
}

/* Space above Register box so links don't collide visually */
.register-box { margin-top: 18px; }




/* back button styling */
.back-btn {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-2px);
}
.back-btn:active {
  transform: translateX(0);
}
