@import url('themes.css');

/* Full screen layout - no centering */
.auth-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  padding: 0;
}

.auth-card {
  width: 100%;
  max-width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 40px 24px;
  box-shadow: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.6s ease-out;
}

/* Logo at top - not centered like card */
.logo {
  text-align: center;
  margin-bottom: 40px;
  margin-top: 20px;
}

.logo h1 {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--neon), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.logo p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Form takes full width */
.form-section {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  flex: 1;
}

.form-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--text);
  font-size: 1.8rem;
  font-weight: 700;
}

/* Full width inputs - pill style */
.form-section input {
  width: 100%;
  padding: 18px 20px;
  margin-bottom: 16px;
  border: 2px solid transparent;
  border-radius: 50px;
  background: var(--bg-secondary);
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-section input::placeholder {
  color: var(--text-muted);
}

.form-section input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--card);
}

/* Password wrapper - full width */
.password-wrapper {
  position: relative;
  margin-bottom: 16px;
  width: 100%;
}

.password-wrapper input {
  margin-bottom: 0;
  padding-right: 60px;
}

/* Show password - styled as icon button */
.show-password-label {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 20px;
  transition: all 0.3s;
}

.show-password-label:hover {
  color: var(--neon);
  background: rgba(0, 229, 255, 0.1);
}

.show-password-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
  accent-color: var(--neon);
  display: none; /* Hide checkbox, use text only like Quiz Bolt eye icon */
}

/* Show "Show" as text button */
.show-password-label::after {
  content: 'Show';
  font-weight: 500;
}

.show-password-label:has(input:checked)::after {
  content: 'Hide';
}

/* Full width button - pill style */
.form-section .btn {
  width: 100%;
  padding: 18px;
  font-size: 1.1rem;
  margin-top: 10px;
  border-radius: 50px;
  border: none;
  background: var(--primary);
  color: white;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(26, 115, 232, 0.4);
  transition: all 0.3s ease;
  position: relative;
}

.form-section .btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26, 115, 232, 0.5);
}

/* Add arrow to button */
.form-section .btn::after {
  content: '→';
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.form-section .btn:hover::after {
  transform: translateX(4px);
}

/* Switch text - full width */
.switch-text {
  text-align: center;
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.switch-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.switch-text a:hover {
  color: var(--neon);
}

/* Theme toggle - fixed position */
.theme-toggle-auth {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
}

/* Messages - full width */
.error-message {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  text-align: center;
  animation: slideIn 0.3s ease-out;
}

.success-message {
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  text-align: center;
  animation: slideIn 0.3s ease-out;
}

/* Button Loader */
.btn-loader {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn-loading .btn-text {
  opacity: 0.7;
}

/* Animations */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Disabled button state */
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .auth-card {
    padding: 20px 16px;
  }
  
  .logo h1 {
    font-size: 1.6rem;
  }
  
  .form-section h2 {
    font-size: 1.5rem;
  }
}
