:root {
  --auth-accent-hover: #0097a7;
  --auth-text: #111111;
  --auth-subtext: #666666;
  --auth-label: #374151;
  --auth-border: #d1d5db;
}

html, body {
  height: 100%;
  margin: 0;
}

body.auth-login-body {
  font-family: 'Sora', sans-serif;
  background: #ffffff;
  color: var(--auth-text);
  overflow: hidden;
}

.auth-login-page {
  display: flex;
  min-height: 100vh;
  height: 100vh;
}

.auth-brand-panel,
.auth-form-panel {
  box-sizing: border-box;
}

.auth-form-panel {
  width: 60%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.auth-form-shell {
  width: 100%;
  max-width: 400px;
}

.auth-form-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--auth-text);
}

.auth-form-header p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--auth-subtext);
}

.auth-form {
  margin-top: 32px;
}

.auth-alert {
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid #ffc107;
  border-radius: 8px;
  background: #fff3cd;
  color: #856404;
  font-size: 14px;
}

.auth-field {
  margin-bottom: 20px;
}

.auth-field label,
.auth-remember span {
  color: var(--auth-label);
}

.auth-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid var(--auth-border);
  border-radius: 8px;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-input:focus {
  outline: none;
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.15);
}

.auth-password-wrap { position: relative; }
.auth-password-wrap .auth-input { padding-right: 44px; }
.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.auth-remember input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--auth-accent);
}

.auth-submit {
  width: 100%;
  height: 48px;
  margin-top: 24px;
  border: 0;
  border-radius: 8px;
  background: var(--auth-accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.auth-submit:hover { background: var(--auth-accent-hover); }
.auth-submit:disabled { opacity: .8; cursor: wait; }

.auth-links {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  color: var(--auth-accent);
}

.auth-links a {
  color: var(--auth-accent);
  text-decoration: none;
}

.auth-links a:hover { text-decoration: underline; }

@media (max-width: 767px) {
  body.auth-login-body { overflow: auto; }
  .auth-login-page { display: block; min-height: 100vh; }
  .auth-form-panel {
    width: 100%;
    min-height: calc(100vh - 80px);
    padding: 24px;
    align-items: flex-start;
  }
  .auth-form-shell { max-width: none; }
}
