
:root {
  --color-primary: #0E7C7B;
  --color-primary-light: #15A19F;
  --color-secondary: #FF6B5E;
  --color-secondary-light: #FF8A7F;
  --color-bg: #F4FAFA;
  --color-surface: #FFFFFF;
  --color-text: #1C2B2B;
  --color-text-muted: #5E7372;
  --color-border: #D9E8E7;
  --color-error: #E5575F;
  --color-success: #0E7C7B;
  --shadow-soft: 0 4px 24px rgba(14, 124, 123, 0.08);
  --shadow-card: 0 8px 40px rgba(14, 124, 123, 0.14);
  --radius: 14px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pulse-bg {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

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

.auth-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 40px 36px;
  border: 1px solid var(--color-border);
}

.brand {
  text-align: center;
  margin-bottom: 28px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #fff;
  border: 1.5px solid var(--color-border, #e2e2e2);
  margin-bottom: 14px;
  padding: 6px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: -0.2px;
}

.brand p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

h2.form-title {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

p.form-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.field-group {
  margin-bottom: 18px;
}

.field-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}

.field-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27, 79, 114, 0.12);
  background: var(--color-surface);
}

.field-group input.input-error {
  border-color: var(--color-error);
}

.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--color-text-muted);
  background: none;
  border: none;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.toggle-password:hover {
  color: var(--color-primary);
}

.field-error {
  font-size: 12px;
  color: var(--color-error);
  margin-top: 5px;
  display: none;
}

.field-error.visible {
  display: block;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 13px;
}

.row-between a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.row-between a:hover {
  text-decoration: underline;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
}

.btn-primary {
  width: 100%;
  padding: 13px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--color-primary-light);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 22px 0;
  color: var(--color-text-muted);
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--color-border);
}

.divider span {
  padding: 0 12px;
}

.btn-google {
  width: 100%;
  padding: 12px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-google:hover {
  background: #F1F4F3;
  border-color: var(--color-primary-light);
}

.btn-google svg {
  width: 18px;
  height: 18px;
}

.switch-link {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.switch-link a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.switch-link a:hover {
  text-decoration: underline;
}

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 18px;
  display: none;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.alert.visible {
  display: flex;
}

.alert-success {
  background: rgba(82, 167, 136, 0.12);
  color: #2E6B52;
  border: 1px solid rgba(82, 167, 136, 0.3);
}

.alert-error {
  background: rgba(229, 87, 95, 0.1);
  color: #B8333B;
  border: 1px solid rgba(229, 87, 95, 0.3);
}

.alert-info {
  background: rgba(27, 79, 114, 0.08);
  color: var(--color-primary);
  border: 1px solid rgba(27, 79, 114, 0.2);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.spinner.visible {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 42, 46, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-overlay.visible {
  display: flex;
}

.modal-box {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 380px;
  width: 100%;
  box-shadow: var(--shadow-card);
}

.modal-box h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  margin-bottom: 8px;
}

.modal-box p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.btn-ghost {
  flex: 1;
  padding: 11px;
  background: transparent;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: var(--color-text);
}

.btn-ghost:hover {
  background: var(--color-bg);
}

.modal-actions .btn-primary {
  flex: 1;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 30px 22px;
  }
}
