:root {
  --primary: #0d9488;
  --primary-hover: #0f766e;
  --bg-gradient-start: #f0fdfa;
  --bg-gradient-end: #ccfbf1;
  --surface: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --focus-ring: rgba(13, 148, 136, 0.2);
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    var(--bg-gradient-start),
    var(--bg-gradient-end)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--text-main);
}

.auth-card {
  background: var(--surface);
  width: 100%;
  max-width: 400px;
  border-radius: 24px;
  box-shadow:
    0 20px 40px -12px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.02);
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Decoration */
.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #0d9488, #0f766e);
}

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

.brand img {
  height: 64px;
  width: auto;
  margin-bottom: 16px;
  object-fit: contain;
}

.brand h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 20px;
}

.label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
}

.input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-main);
  transition: all 0.2s ease;
  background: #f8fafc;
  box-sizing: border-box;
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.input::placeholder {
  color: #94a3b8;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

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

.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.1s,
    box-shadow 0.2s;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgba(37, 99, 235, 0.3);
}

.btn:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: white;
  border: 2px solid var(--border);
  color: var(--text-muted);
  margin-top: 12px;
  box-shadow: none;
}

.btn-secondary:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: var(--text-main);
  box-shadow: none;
}

.error-msg {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #dc2626;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.register-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.register-section p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hidden {
  display: none;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .auth-card {
    padding: 24px;
    border-radius: 16px;
  }

  .brand img {
    height: 50px;
  }

  .brand h1 {
    font-size: 20px;
  }

  .brand p {
    font-size: 13px;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .input {
    padding: 10px 14px;
    font-size: 14px;
  }

  .btn {
    padding: 10px;
    font-size: 15px;
  }

  .error-msg {
    padding: 10px;
    font-size: 13px;
  }

  .auth-form {
    gap: 6px;
  }

  .label {
    font-size: 13px;
  }

  .register-section {
    margin-top: 16px;
    padding-top: 16px;
  }
}

@media (max-width: 360px) {
  .auth-card {
    padding: 20px;
  }

  .brand h1 {
    font-size: 18px;
  }

  .input {
    padding: 8px 12px;
  }

  .btn {
    padding: 8px;
    font-size: 14px;
  }
}