:root {
  --accent-green: #78e35b;
  --accent-cyan: #12c9df;
  --accent-blue: #2668ff;
}

body {
  background: linear-gradient(135deg, #0a0f1c 0%, #1a2338 100%);
}

.card {
  position: relative;
  background: #ffffff;
  color: #0f172a;
  backdrop-filter: blur(16px);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

.theme-toggle:hover { background: rgba(15, 23, 42, 0.1); }
.tab-wrap { background: rgba(15, 23, 42, 0.06); }

.input-field {
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.15);
  color: #0f172a;
}

.input-field::placeholder { color: rgba(15, 23, 42, 0.55); }
.social-text { color: rgba(15, 23, 42, 0.6); }

.social-btn {
  background: rgba(15, 23, 42, 0.05);
  color: #0f172a;
}

.social-btn:hover { background: rgba(15, 23, 42, 0.12); }

.btn-brand {
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan), var(--accent-blue));
  box-shadow: 0 10px 25px rgba(18, 201, 223, 0.20);
}

.btn-brand:hover {
  transform: translateY(-1px);
  color: #fff;
}
.btn-brand:visited,
.btn-brand:active,
.btn-brand:focus,
.btn-brand:focus-visible {
  color: #fff !important;
}
.btn-resend {
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn-resend:hover {
  color: #1d4ed8;
  text-decoration: none;
}
.card.dark-content .btn-resend {
  color: #7dd3fc;
}
.card.dark-content .btn-resend:hover {
  color: #bae6fd;
}

.hero-actions .btn,
.hero-actions .btn.btn-lg,
.hero-actions .hero-btn {
  min-width: 0;
  min-height: 64px;
  padding: 18px 34px;
  font-size: 1.22rem !important;
  font-weight: 700;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  width: 100%;
}

.card.dark-content {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
}

.card.dark-content .theme-toggle {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.card.dark-content .theme-toggle:hover { background: rgba(255, 255, 255, 0.16); }
.card.dark-content .tab-wrap { background: rgba(255, 255, 255, 0.1); }

.card.dark-content .input-field {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.card.dark-content .input-field::placeholder { color: rgba(255, 255, 255, 0.65); }
.card.dark-content .social-text { color: rgba(255, 255, 255, 0.6); }

.card.dark-content .social-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.card.dark-content .social-btn:hover { background: rgba(255, 255, 255, 0.2); }

.fields-stack { display: grid; gap: 14px; }
.field-block { display: flex; flex-direction: column; }
.error-text { color: #ef4444; font-size: 12px; margin-top: 3px; font-weight: 700; line-height: 1.2; }
.password-field {
  position: relative;
  display: flex;
  align-items: center;
}
.password-field .form-control {
  width: 100%;
  padding-right: 44px;
}
.toggle-password-btn {
  position: absolute;
  top: 50% !important;
  right: 12px;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  line-height: 1;
  border: 0;
  background: transparent;
  color: rgba(15, 23, 42, 0.6);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.card.dark-content .toggle-password-btn {
  color: rgba(255, 255, 255, 0.75);
}
.auth-check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-top: 2px;
}
.auth-inline-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.auth-help-text {
  margin-top: -4px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(15, 23, 42, 0.65);
}
.card.dark-content .auth-help-text {
  color: rgba(255, 255, 255, 0.72);
}
.auth-checkbox {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: 0;
  border: 2px solid #22c55e;
  border-radius: 6px;
  background-color: transparent;
  background-image: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  box-shadow: none;
}
.auth-checkbox:checked {
  background-color: #22c55e;
  border-color: #22c55e;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M4 10l4 4 8-8'/%3e%3c/svg%3e");
}
.auth-checkbox:focus {
  box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.25);
}
.auth-checkbox:active {
  filter: none;
}
.auth-link {
  color: #2563eb;
  text-decoration: none;
}
.auth-link:hover {
  color: #1d4ed8;
  text-decoration: none;
}
.card.dark-content .auth-check-label {
  color: rgba(255, 255, 255, 0.85);
}
.card.dark-content .auth-link {
  color: #7dd3fc;
  text-decoration: none;
}
.card.dark-content .auth-link:hover {
  color: #bae6fd;
  text-decoration: none;
}

input:focus,
input:focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible,
button:focus,
button:focus-visible,
.form-control:focus,
.form-control:focus-visible,
.form-check-input:focus,
.form-check-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.notice {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}
.notice-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #166534;
}
.notice-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #991b1b;
}
.card.dark-content .notice-success {
  color: #86efac;
}
.card.dark-content .notice-error {
  color: #fca5a5;
}
