/* ==========================================================================
   CSC VLE Tools - Authentication Stylesheet (auth.css)
   Clean, modern design for Login, Register & Password Recovery
   ========================================================================== */

.auth-wrapper {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 100%;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-header .auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
}

.auth-header h1,
.auth-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.auth-header p {
  color: var(--muted);
  font-size: 13.5px;
}

.auth-tabs {
  display: flex;
  background: var(--bg);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: none;
}

.auth-tab.active {
  background: var(--card);
  color: var(--blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
  pointer-events: none;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}

.input-icon-wrap .form-control {
  padding-left: 42px;
}

.form-control:focus {
  border-color: var(--blue);
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.15);
}

.form-help {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 20px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--muted);
}

.form-check input[type="checkbox"] {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.btn-auth-submit {
  width: 100%;
  padding: 13px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-auth-submit:hover {
  background: var(--blue-d);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(21, 101, 192, 0.3);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.auth-footer a {
  color: var(--blue);
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.quick-demo-alert {
  background: #eef6ff;
  border: 1px solid #c9e0ff;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  color: #104c8f;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quick-demo-alert button {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 24px 18px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Guarantee that standard user login sections never display admin panel links */
.auth-wrapper a[href*="admin"],
.auth-card a[href*="admin"],
.auth-footer a[href*="admin"],
#globalAuthModal a[href*="admin"],
.modal-card a[href*="admin"] {
  display: none !important;
  visibility: hidden !important;
}
