/* Auth Page Styles - Dark Theme matching site */
.auth-page {
  background: #000;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 40px;
}

.auth-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.auth-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  padding: 40px;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.auth-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.auth-header p {
  color: #999;
  font-size: 16px;
  margin-bottom: 0;
}

.auth-form .form-label {
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.auth-form .form-control {
  padding: 12px 16px;
  border: 2px solid #333;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s;
  background: #222;
  color: #fff;
}

.auth-form .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  background: #2a2a2a;
  color: #fff;
}

.auth-form .form-control::placeholder {
  color: #666;
}

.password-input-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s;
}

.password-toggle:hover {
  color: #667eea;
}

.auth-form .btn-primary {
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  color: #fff;
}

.auth-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.auth-form .btn-primary:active {
  transform: translateY(0);
}

.auth-form .btn-outline-dark,
.auth-form .btn-outline-primary {
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border-width: 2px;
  transition: all 0.3s;
  background: #222;
  color: #fff;
  border-color: #333;
}

.auth-form .btn-outline-dark:hover {
  background: #333;
  border-color: #444;
  color: #fff;
}

.auth-form .btn-outline-primary:hover {
  background: #667eea;
  border-color: #667eea;
  color: #fff;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: #666;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #333;
}

.divider span {
  padding: 0 15px;
  font-size: 14px;
  font-weight: 600;
}

.auth-form a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.auth-form a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.form-check-label {
  font-size: 14px;
  color: #999;
}

.form-check-input {
  background-color: #222;
  border-color: #333;
}

.form-check-input:checked {
  background-color: #667eea;
  border-color: #667eea;
}

.form-check-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.alert {
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  border: 1px solid;
}

.alert-danger {
  background: rgba(220, 53, 69, 0.1);
  border-color: #dc3545;
  color: #ff6b6b;
}

.alert-success {
  background: rgba(40, 167, 69, 0.1);
  border-color: #28a745;
  color: #5cb85c;
}

/* Loading state */
.btn-primary.loading .btn-text {
  visibility: hidden;
}

.btn-primary.loading .spinner-border {
  display: inline-block !important;
}

/* Phone input styling */
.iti {
  width: 100%;
}

.iti__flag-container {
  padding: 0;
}

.iti__selected-flag {
  padding: 0 12px;
  background: #222;
}

.iti__country-list {
  background: #222;
  border: 1px solid #333;
}

.iti__country:hover {
  background: #2a2a2a;
}

.iti__selected-flag:hover {
  background: #2a2a2a;
}

/* Responsive */
@media (max-width: 576px) {
  .auth-card {
    padding: 30px 20px;
  }

  .auth-header h1 {
    font-size: 28px;
  }

  .auth-header p {
    font-size: 14px;
  }
}

/* Navbar adjustments for auth pages */
.auth-page .navbar {
  background: #000;
  backdrop-filter: none;
  box-shadow: none;
  border-bottom: 1px solid #222;
}

.auth-page .navbar-brand img {
  filter: none;
}

.auth-page .navbar-light .navbar-nav .nav-link {
  color: #fff;
}

.auth-page .navbar-light .navbar-nav .nav-link:hover {
  color: #667eea;
}

.auth-page .navbar-toggler {
  border-color: #333;
}

.auth-page .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Make sure text in form is readable */
.auth-form input,
.auth-form select,
.auth-form textarea {
  color: #fff;
}

.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0px 1000px #222 inset;
  transition: background-color 5000s ease-in-out 0s;
}

.form-text.text-muted {
  color: #666 !important;
}

.text-center p {
  color: #999;
}
