@import url("https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;600;700&display=swap");

:root {
  --bg-1: #11181f;
  --bg-2: #243b4a;
  --accent: #f08a5d;
  --text: #f7f7f7;
  --muted: #c4ced6;
  --card: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] {
  --bg-1: #f5efe6;
  --bg-2: #e6d6be;
  --accent: #2c6a77;
  --text: #16212a;
  --muted: #4b5c66;
  --card: rgba(255, 255, 255, 0.7);
  --border: rgba(22, 33, 42, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Work Sans", "Segoe UI", sans-serif;
  background: linear-gradient(145deg, var(--bg-1), var(--bg-2));
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 84px;
}

.login-shell {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.login-card {
  width: 100%;
  max-width: 540px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2.5rem;
  backdrop-filter: blur(6px);
}

.login-header {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #ffd6a5);
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-sub {
  color: var(--muted);
}

.controls {
  display: flex;
  gap: 0.5rem;
}

.hint {
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer {
  color: var(--muted);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
}

.form-control {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(240, 138, 93, 0.3);
}

.link-light {
  color: var(--text);
}

@media (max-width: 576px) {
  .login-card {
    padding: 2rem 1.5rem;
  }
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.footer-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.footer-brand:hover .footer-logo {
  transform: scale(1.4);
}


/* Footer */
.site-footer {
  padding: 0.75rem 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
}

[data-theme="dark"] .site-footer {
  border-top-color: rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.6);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}

.site-footer .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] .site-footer .footer-brand {
  background: rgba(255, 255, 255, 0.85);
}

.site-footer .footer-brand small {
  font-weight: 600;
  color: #0f172a;
}
