/* Auth page styles using global theme variables */

body {
  background: var(--bg-canvas);
  color: var(--fg-default);
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  width: 100%;
  min-height: 100vh;
  background: var(--bg-canvas);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-box {
  background: var(--bg-canvas-subtle);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  box-shadow: var(--shadow-medium);
  padding: 2.5rem 2rem 2rem 2rem;
  min-width: 320px;
  max-width: 400px;
  width: 100%;
  margin: 2rem 0;
}

.auth-title h1 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(90deg, var(--accent-fg), #a371f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-title p {
  color: var(--fg-muted);
  text-align: center;
  margin: 0 0 2rem 0;
  font-size: 1.1rem;
}

.auth-error {
  color: #f85149;
  background: var(--bg-canvas-subtle);
  border: 1px solid #f85149;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

.auth-success {
  color: #56d364;
  background: var(--bg-canvas-subtle);
  border: 1px solid #56d364;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

.auth-field {
  display: flex;
  align-items: center;
  background: var(--bg-canvas);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  margin-bottom: 1.2rem;
  padding: 0.2rem 0.5rem;
}
.auth-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-canvas-subtle);
  border-radius: 50%;
  margin-right: 0.5rem;
}
.auth-icon img {
  width: 16px;
  height: 16px;
  filter: var(--icon-filter);
  opacity: 0.8;
}
.auth-input {
  flex: 1 1 auto;
  background: transparent;
  border: none;
  color: var(--fg-default);
  font-size: 1rem;
  padding: 0.7rem 0.5rem;
  outline: none;
}
.auth-input::placeholder {
  color: var(--fg-muted);
  opacity: 1;
}

.password-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  background-color: var(--bg-canvas-subtle);
}

.password-icon {
  color: var(--fg-muted);
  transition: color 0.2s ease;
}

.password-toggle:hover .password-icon {
  color: var(--fg-default);
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(35,134,54,0.08);
}
.btn:hover {
  background: var(--btn-primary-hover-bg);
}

.btn.fr {
  float: right;
}

.auth-links {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--fg-muted);
}
.auth-links a {
  color: var(--accent-fg);
  margin: 0 0.5rem;
  text-decoration: none;
  font-weight: 500;
}
.auth-links a:hover {
  text-decoration: underline;
}

.why-registration-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--fg-muted) !important;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.why-registration-link:hover {
  color: var(--accent-fg) !important;
  text-decoration: underline;
}

@media (max-width: 500px) {
  .auth-box {
    min-width: 0;
    padding: 1.2rem 0.5rem 1.5rem 0.5rem;
  }
  .auth-title h1 {
    font-size: 1.4rem;
  }
}

.auth-oauth {
  margin-bottom: 1.5rem;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  background: var(--bg-canvas);
  color: var(--fg-default);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-google:hover {
  background: var(--bg-canvas-subtle);
  border-color: var(--border-muted);
  box-shadow: var(--shadow-small);
}

.google-icon {
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-default);
}

.auth-divider span {
  background: var(--bg-canvas);
  padding: 0 1rem;
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.auth-suggestion {
  background: var(--bg-canvas-subtle);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.2rem;
}

.auth-suggestion p {
  margin: 0 0 0.5rem 0;
  color: var(--fg-default);
}

.auth-suggestion p:last-child {
  margin-bottom: 0;
}

.auth-suggestion-note {
  color: var(--fg-muted) !important;
  font-size: 0.9rem;
}
