/* Authentication Pages Styles */

.auth-main {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(var(--bg));
  padding: 24px 0;
}

.auth-wrapper {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* Alert container styles */
.alert-container {
  margin-bottom: 20px;
}

.alert {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.3s ease;
}

.alert.success {
  background: rgba(16, 185, 129, 0.1);
  color: rgb(16, 185, 129);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert.error {
  background: rgba(239, 68, 68, 0.1);
  color: rgb(239, 68, 68);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-card {
  background: rgb(var(--card));
  border: 1px solid rgb(var(--border));
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.auth-header {
  text-align: center;
  margin: 32px 0;
}


.auth-header h1 {
  font-size: 28px;
  margin-bottom: 8px;
  color: rgb(var(--fg));
}

.auth-header p {
  margin: 0;
  font-size: 15px;
}

.auth-form {
  display: grid;
  gap: 20px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  font-size: 14px;
  color: rgb(var(--fg));
}

.form-group input {
  padding: 12px 16px;
  border: 1px solid rgb(var(--border));
  border-radius: 12px;
  background: rgb(var(--bg));
  color: rgb(var(--fg));
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: rgb(var(--accent));
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* .form-group input:invalid {
  border-color: rgba(239, 68, 68, 0.5);
} */

.password-requirements {
  margin-top: 4px;
}

.password-requirements small {
  font-size: 12px;
  line-height: 1.4;
}

.form-actions {
  margin-top: 8px;
}

.auth-submit {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

/* Loading button styles */
.btn-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.auth-links {
  text-align: end;
}

.forgot-link {
  color: rgb(var(--accent));
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgb(var(--border));
}

.auth-footer p {
  margin: 0;
  font-size: 14px;
}

.signup-link,
.login-link {
  color: rgb(var(--accent));
  font-weight: 600;
  text-decoration: none;
}

.signup-link:hover,
.login-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
  .auth-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    /* margin: 0 12px; */
    box-sizing: border-box;
  }

  .auth-card input{
    width: 100%;
  }
  .auth-header h1 {
    font-size: 24px;
  }
}
