/*
File: auth.css
Path: /var/www/speechDemo/frontend/assets/css/
Created: February 25, 2025 20:35:00
*/

:root {
  --auth-background: #f5f5f5;
  --auth-container-bg: white;
  --auth-header-bg: var(--primary-color);
  --auth-header-text: white;
  --auth-tab-active: var(--primary-color);
  --auth-tab-inactive: #888;
  --auth-tab-bg: #f5f5f5;
  --auth-error: #ea4335;
  --auth-success: #34a853;
}

.auth-page {
  background-color: var(--auth-background);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
}

.auth-container {
  width: 90%;
  max-width: 480px;
  margin: 2rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background-color: var(--auth-container-bg);
}

.auth-header {
  background-color: var(--auth-header-bg);
  color: var(--auth-header-text);
  padding: 2rem 1.5rem;
  text-align: center;
}

.auth-header h1 {
  margin: 0;
  font-size: 2rem;
}

.auth-header .subtitle {
  margin-top: 0.5rem;
  opacity: 0.9;
}

.auth-form-container {
  padding: 1.5rem;
}

.auth-tabs {
  display: flex;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.auth-tab {
  flex: 1;
  padding: 0.75rem;
  text-align: center;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--auth-tab-inactive);
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.auth-tab.active {
  color: var(--auth-tab-active);
  border-bottom: 2px solid var(--auth-tab-active);
}

.auth-tab:hover {
  background-color: var(--auth-tab-bg);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-form h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(51, 103, 214, 0.2);
}

.btn-block {
  width: 100%;
  margin-top: 1rem;
}

.form-message {
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  display: none;
}

.form-message.error {
  display: block;
  background-color: #fce8e6;
  color: var(--auth-error);
  border: 1px solid #fad2cf;
}

.form-message.success {
  display: block;
  background-color: #e6f4ea;
  color: var(--auth-success);
  border: 1px solid #ceead6;
}

@media (max-width: 500px) {
  .auth-container {
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
  }
}
