/* DVForge auth.html stylesheet (Phase 21A-5C).

Extracted from an inline <style> block so auth.html can run under a
Content-Security-Policy without 'unsafe-inline' for style-src -- see
serve_frontend.py and docs/phase21/GOOGLE_AUTH_ACCOUNT_LINKING.md. */

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  display: flex;
  height: 100vh;
  overflow: hidden;
}
.auth-container {
  display: flex;
  width: 100%;
  height: 100vh;
}
.auth-graphic-side {
  flex: 1.1;
  position: relative;
  background-color: #000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
  border-right: 1px solid var(--border-subtle);
}
@media (max-width: 900px) {
  .auth-graphic-side {
    display: none;
  }
}
.auth-graphic-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1.0;
}
.auth-graphic-overlay {
  position: relative;
  z-index: 2;
}
.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.logo-text {
  font-family: var(--font-pixel);
  font-size: 2.2rem;
  letter-spacing: 2px;
  color: #ffffff;
  text-transform: uppercase;
}
.auth-quote {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--primary-blue);
  max-width: 480px;
  margin-top: 1.5rem;
  line-height: 1.6;
}
.auth-form-side {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  background-color: var(--bg-primary);
  overflow-y: auto;
  height: 100vh;
  box-sizing: border-box;
}
@media (min-width: 901px) {
  .auth-form-side {
    overflow: hidden; /* Prevent scrolling entirely on desktop */
  }
}
.auth-card {
  width: 100%;
  max-width: 400px; /* Confined width */
  background: transparent;
  backdrop-filter: none;
  border: none;
  padding: 0;
  box-shadow: none;
  margin: 0;
}
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding-bottom: 0.5rem;
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--text-tertiary);
  cursor: pointer;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-speed);
}
.auth-tab.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
}
.form-group {
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.form-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
}
.form-input {
  background-color: rgba(14, 12, 12, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.6rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color var(--transition-speed);
  border-radius: 0;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary-blue);
}
.btn-auth-submit {
  width: 100%;
  height: 38px;
  margin-top: 1rem;
  font-family: var(--font-pixel);
  text-transform: uppercase;
  font-size: 0.82rem;
  border-radius: 0;
}
.google-divider {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}
.google-divider::before, .google-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--border-subtle);
}
.google-divider span {
  padding: 0 0.75rem;
}
.btn-google-auth {
  width: 100%;
  height: 38px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0;
  transition: background-color var(--transition-speed);
}
.btn-google-auth:hover {
  background-color: rgba(255, 255, 255, 0.05);
}
.auth-error-msg {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--error);
  color: #ff8080;
  padding: 0.75rem;
  font-size: 0.78rem;
  margin-bottom: 1.25rem;
  display: none;
  font-family: var(--font-mono);
  line-height: 1.4;
}
.auth-success-msg {
  background-color: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--success);
  color: #80ffa8;
  padding: 0.75rem;
  font-size: 0.78rem;
  margin-bottom: 1.25rem;
  display: none;
  font-family: var(--font-mono);
  line-height: 1.4;
}
.auth-utility-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.85rem;
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}
.auth-utility-link {
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color var(--transition-speed);
  text-transform: uppercase;
}
.auth-utility-link:hover {
  color: var(--primary-blue);
}
.back-home {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-speed);
}
.back-home:hover {
  color: var(--primary-blue);
}
/* Password Visibility Toggle Styles */
.password-input-wrapper {
  position: relative;
  display: block;
  width: 100%;
}
.password-input-wrapper .form-input {
  padding-right: 2.75rem;
}
.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
  transition: color var(--transition-speed);
}
.password-toggle-btn:hover {
  color: var(--text-primary);
}
.password-toggle-btn svg {
  pointer-events: none;
}
/* Mascot CSS animations from main style.css to keep consistent premium feel */
.logo-alien rect {
  shape-rendering: crispEdges;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- Phase 21A-5C: Google Sign-In additions --- */

.google-signin-area {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 0.5rem;
}
.google-signin-container {
  display: flex;
  justify-content: center;
  min-height: 40px;
}
.google-signin-unavailable {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  text-align: center;
  padding: 0.5rem 0;
  display: none;
}
.auth-info-msg {
  background-color: rgba(59, 130, 246, 0.12);
  border: 1px solid var(--primary-blue);
  color: var(--text-primary);
  padding: 0.85rem;
  font-size: 0.78rem;
  margin-bottom: 1.25rem;
  display: none;
  font-family: var(--font-mono);
  line-height: 1.5;
}
.auth-screen {
  display: none;
}
.auth-screen.active {
  display: block;
}
.auth-expiry-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
  text-align: center;
}

/* Chrome / Edge / Safari Autofill Dark Mode Fix */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active,
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text-primary, #e3e1df) !important;
  -webkit-box-shadow: 0 0 0 1000px #0e0c0c inset !important;
  box-shadow: 0 0 0 1000px #0e0c0c inset !important;
  transition: background-color 5000s ease-in-out 0s !important;
  caret-color: var(--text-primary, #e3e1df) !important;
  color-scheme: dark !important;
}
