:root {
  --blue-primary: #2563eb;
  --blue-hover: #1d4ed8;
  --bg-soft: #f8faff;
  --text-main: #1e293b;
  --text-muted: #64748b;
}

.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--bg-soft);
  margin: 0;
  font-family: 'Segoe UI', Roboto, sans-serif;
}

.auth-card {
  background: white;
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  width: 100%;
  max-width: 400px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.auth-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.auth-logo a {
  text-decoration: none;
  color: inherit;
}

.auth-card h1 {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  text-align: center;
}

.input-group {
  margin-bottom: 1.25rem;
}

.input-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.input-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.input-group input:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.auth-btn {
  width: 100%;
  background: var(--blue-primary);
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 1rem;
}

.auth-btn:hover {
  background: var(--blue-hover);
}

.auth-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.switch-link {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.switch-link a {
  color: var(--blue-primary);
  text-decoration: none;
  font-weight: 600;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    min-width: 280px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 500;
}

.toast.show { transform: translateX(0); }
.toast.success { border-left: 5px solid #10b981; color: #065f46; }
.toast.error { border-left: 5px solid #ef4444; color: #991b1b; }

.toast-close {
    cursor: pointer;
    margin-left: 10px;
    opacity: 0.5;
    font-size: 1.2rem;
}