/* NEXORABOT - Login & Registration styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at top left, #1a1a3e 0%, #16213e 40%, #0f3460 100%);
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  overflow: hidden;
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, #00c6ff, #0072ff, #667eea) 1;
}

.auth-card-inner {
  padding: 32px 36px 36px;
}

.logo-wrap {
  text-align: center;
  margin-bottom: 24px;
}

.logo-wrap img {
  max-height: 120px;
  max-width: 100%;
  width: auto;
  height: auto;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

.auth-card h1 {
  font-size: 1.5rem;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.auth-card .subtext {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f4f4f5;
  font-size: 0.95rem;
  color: #1f2937;
  transition: background 0.2s, border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  background: #fff;
  border-color: #0d9488;
}

.form-group select.country-select {
  background-color: #212130;
  color: #e5e7eb;
  min-height: 44px;
}

.form-group select.country-select:focus {
  background-color: #212130;
  color: #fff;
}

.form-group select.country-select option {
  background: #212130;
  color: #e5e7eb;
}

.form-group input::placeholder {
  color: #9ca3af;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 44px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #6b7280;
  font-size: 1.1rem;
}

.toggle-password:hover {
  color: #0d9488;
}

.row-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.remember-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.remember-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0d9488;
  cursor: pointer;
}

.remember-wrap label {
  font-size: 0.875rem;
  color: #4b5563;
  cursor: pointer;
  margin: 0;
}

.forgot-link {
  font-size: 0.875rem;
  color: #2563eb;
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #0d9488 0%, #14b8a6 50%, #06b6d4 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.05s;
}

.btn-primary:hover {
  opacity: 0.95;
}

.btn-primary:active {
  transform: scale(0.99);
}

.footer-link {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: #6b7280;
}

.footer-link a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

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

.terms-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.terms-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #0d9488;
  cursor: pointer;
  flex-shrink: 0;
}

.terms-wrap label {
  font-size: 0.875rem;
  color: #4b5563;
  cursor: pointer;
  margin: 0;
  line-height: 1.4;
}

.terms-wrap a {
  color: #2563eb;
  text-decoration: none;
}

.terms-wrap a:hover {
  text-decoration: underline;
}

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.email-otp-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.email-otp-row input[type="email"] {
  flex: 1;
  min-width: 0;
}

.btn-send-otp {
  flex-shrink: 0;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  background: #0d9488;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.btn-send-otp:hover:not(:disabled) {
  opacity: 0.92;
}

.btn-send-otp:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.otp-box-wrap input {
  letter-spacing: 0.35em;
  font-size: 1.1rem;
  text-align: center;
  font-weight: 600;
}

.otp-hint {
  font-size: 0.8rem;
  color: #0d9488;
}
