:root {
  --auth-bg: #fafafa;
  --auth-card: #ffffff;
  --auth-text: #1a1a1a;
  --auth-text-muted: #6b6b6b;
  --auth-border: #e5e5e5;
  --auth-btn-dark: #1a1a1a;
  --auth-btn-dark-hover: #333333;
  --auth-link: #0066cc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #fef7f5 0%, #f5f0fa 50%, #f0f4ff 100%);
  color: var(--auth-text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: 'Crie vídeos realistas com IA';
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 700;
  color: rgba(26, 26, 26, 0.04);
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: center;
  padding: 24px;
  pointer-events: none;
  z-index: 0;
}

.auth-page {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.auth-card {
  background: var(--auth-card);
  border: 1px solid #dadce0;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  overflow: hidden;
}

.auth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 0;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--auth-text);
  text-decoration: none;
}

.auth-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-logo:hover {
  color: var(--auth-text);
}

.auth-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--auth-text-muted);
  text-decoration: none;
  font-size: 1.2rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.auth-close:hover {
  background: var(--auth-bg);
  color: var(--auth-text);
}

.auth-body {
  padding: 32px 24px 28px;
}

.auth-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 400;
  color: #202124;
  letter-spacing: normal;
}

.auth-subtitle {
  margin: 0 0 32px;
  font-size: 0.875rem;
  color: #5f6368;
  line-height: 1.4;
}

.auth-subtitle strong {
  color: var(--auth-text);
}

.auth-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#googleAuthContainer {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-options.hidden {
  display: none;
}

.auth-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  border: 1px solid var(--auth-border);
  background: var(--auth-card);
  color: var(--auth-text);
}

.auth-btn-google {
  border-color: var(--auth-border);
  background: var(--auth-card);
}

.auth-btn-google:hover {
  background: #f8f8f8;
  border-color: #ddd;
}

.auth-btn-email {
  border: none;
  background: #1a1a1a;
  color: white;
}

.auth-btn-email:hover {
  background: #333333;
  color: white;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--auth-border);
}

.auth-divider span {
  font-size: 0.8rem;
  color: var(--auth-text-muted);
  font-weight: 500;
}

.auth-email-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-email-form.hidden {
  display: none;
}

.auth-email-form label {
  font-size: 0.875rem;
  font-weight: 400;
  color: #3c4043;
}

.auth-email-form input {
  padding: 13px 15px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--auth-card);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-email-form input::placeholder {
  color: #5f6368;
}

.auth-email-form input:focus {
  outline: none;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 1px #1a1a1a;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.password-input-wrap input {
  padding-right: 48px;
  flex: 1;
}
.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: #5f6368;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.password-toggle:hover {
  color: #1a1a1a;
  background: #f1f3f4;
}

.auth-errors {
  margin: 0;
  font-size: 0.8125rem;
  color: #d93025;
  line-height: 1.4;
}

.auth-errors.hidden {
  display: none;
}

.auth-btn-submit {
  margin-top: 8px;
  background: #1a1a1a;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 12px 24px;
}

.auth-btn-submit:hover {
  background: #333333;
  color: white;
}

.auth-back {
  background: none;
  border: none;
  color: #1a1a1a;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 8px 0;
  font-family: inherit;
  align-self: flex-start;
}

.auth-back:hover {
  color: #333333;
}

.auth-legal {
  margin: 28px 0 0;
  font-size: 0.75rem;
  color: #5f6368;
  line-height: 1.5;
}

.auth-legal a {
  color: #1a1a1a;
  text-decoration: none;
}

.auth-legal a:hover {
  text-decoration: underline;
}
