:root {
  --background:         #f9f7f6;
  --foreground:         #1a2433;
  --card:               #ffffff;
  --card-foreground:    #1a2433;
  --primary:            #3f7ee8;
  --primary-foreground: #ffffff;
  --secondary:          #ebe7e4;
  --secondary-foreground: #625d67;
  --muted:              #ede9e6;
  --muted-foreground:   #8d8892;
  --accent:             #edf1f8;
  --accent-foreground:  #2f69cf;
  --destructive:        #dc2626;
  --border:             #ddd7d3;
  --input:              #ddd7d3;
  --radius:             0.625rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

section {
  margin-bottom: 5rem;
}

body {
  font-family: system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
}

a {
  text-decoration: none;
  color: inherit;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.page-bg {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background-color: #f5f1eb;
  position: relative;
  overflow: hidden;
}

.paper-texture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.leaf-watermark {
  position: fixed;
  left: -1vw;
  top: 50%;
  transform: translateY(-50%);
  width: 75vw;
  height: 75vw;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}
.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 2px 16px rgba(26, 36, 51, 0.06);
}

.input-field {
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--input);
  background: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(63, 126, 232, 0.15);
}

.btn-primary {
  width: 100%;
  padding: 0.7rem 1.5rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 0.875rem;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-google {
  width: 100%;
  padding: 0.7rem 1.5rem;
  border-radius: 0.5rem;
  background: var(--card);
  color: var(--foreground);
  font-weight: 600;
  font-size: 0.875rem;
  font-family: inherit;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
}

.btn-google:hover {
  background: var(--secondary);
}

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  margin: 1.25rem 0;
}

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

.error-banner {
  display: none;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 0.8125rem;
}

.page-logo {
  height: 80px;
  width: auto;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.page-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.page-link {
  color: var(--primary);
  font-weight: 500;
  transition: opacity 0.15s ease;
}

.page-link:hover {
  opacity: 0.85;
}

.page-footer-text {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.page-card-large {
  max-width: 700px;
}

.page-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.page-checkbox {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.page-checkbox-label {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted-foreground);
}

.paper-texture-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.08;
}

.content {
  max-width: 1200px;
  width: 100%;
  padding: 4rem 1.5rem;
  margin: 0 auto;
}

.card {
  padding: 3rem;
}

.page-title {
  line-height: 1.2;
}

.page-subtitle {
  line-height: 1.6;
}
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper .input-field {
  padding-right: 2.5rem; /* space for the eye icon */
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: 0.4rem;
  transition: background 0.15s, color 0.15s;
}

.password-toggle:hover {
  background: var(--secondary);
  color: var(--foreground);
}

.icon-eye {
  width: 18px;
  height: 18px;
}