/**
 * Custom Authentication UI Styles
 */

.supafaya-auth-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  max-width: 400px;
  margin: 2rem auto;
  box-sizing: border-box;
}

.auth-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 2rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  padding: 12px;
  border-radius: 50%;
  background-color: #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
}

.auth-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #1e293b;
}

.auth-subtext {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
}

.auth-form {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #334155;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.password-field {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password:hover {
  color: #475569;
}

.form-error {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.25rem;
  min-height: 1rem;
}

.auth-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  border: none;
  text-decoration: none;
}

.auth-button.primary {
  background-color: #2563eb;
  color: white;
}

.auth-button.primary:hover {
  background-color: #1d4ed8;
}

.auth-button.primary:active {
  transform: translateY(1px);
}

.auth-button.secondary {
  background-color: #f1f5f9;
  color: #64748b;
}

.auth-button.secondary:hover {
  background-color: #e2e8f0;
  color: #475569;
}

.auth-button.secondary:active {
  transform: translateY(1px);
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.auth-loading-spinner {
  display: flex;
  justify-content: center;
}

.auth-loading {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
}

.loading-spinner {
  color: #3b82f6;
}

.rotating-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.form-action {
  position: relative;
  margin-top: 1.5rem;
}

.form-action .auth-loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

.form-links {
  margin-top: 0.75rem;
  text-align: right;
}

.form-links a {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.875rem;
}

.form-links a:hover {
  text-decoration: underline;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.875rem;
  color: #64748b;
}

.auth-footer a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-error {
  background-color: #fee2e2;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: #b91c1c;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.auth-success {
  background-color: #dcfce7;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: #166534;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.user-avatar-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #475569;
  font-size: 1.75rem;
  font-weight: 600;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
} 