@import url('/static/branding/branding.css');

:root {
  --auth-green: #0f766e;
  --auth-green-light: #11a36b;
  --auth-border: #dbe4ef;
  --auth-muted: #617182;
  --auth-bg: linear-gradient(180deg, #eef6f2 0%, #f7faf9 100%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "SE", "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--auth-bg);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
}

.login-container,
.register-container {
  background: #ffffff;
  width: 100%;
  padding: 40px 34px;
  border-radius: 28px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.12);
}

.login-container {
  max-width: 460px;
}

.register-container {
  max-width: 560px;
  margin: 24px 0;
}

.logo {
  text-align: center;
  margin-bottom: 22px;
}

.logo img {
  max-width: 100%;
  height: 60px;
}

h1 {
  text-align: center;
  margin: 0 0 10px;
  color: var(--auth-green);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
}

.subtitle {
  margin: 0 0 28px;
  text-align: center;
  color: var(--auth-muted);
  font-size: 15px;
  line-height: 1.7;
}

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

label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #17212f;
}

input,
select {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--auth-border);
  font-size: 14px;
  line-height: 1.4;
  transition: border 0.3s, box-shadow 0.3s;
  background: #fff;
  color: #17212f;
}

input:focus,
select:focus {
  outline: none;
  border-color: #86efac;
  box-shadow: 0 0 0 4px rgba(134, 239, 172, 0.2);
}

.btn {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: none;
  border-radius: 999px;
  background: var(--auth-green);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.18);
}

.btn:hover {
  background: var(--auth-green-light);
  box-shadow: 0 16px 30px rgba(134, 239, 172, 0.28);
  transform: translateY(-1px);
}

.register-container .btn {
  margin-top: 10px;
}

.register-container--invite {
  max-width: 640px;
}

.register-hero {
  display: grid;
  gap: 12px;
  margin: 4px 0 24px;
  padding: 18px;
  border: 1px solid #dbe4ef;
  border-radius: 22px;
  background: linear-gradient(180deg, #f4fbf7 0%, #ffffff 100%);
}

.register-hero__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ecfdf3;
  color: var(--auth-green);
  font-size: 13px;
  font-weight: 800;
}

.register-hero h1 {
  margin-bottom: 0;
}

.register-hero .subtitle {
  margin-bottom: 0;
}

.register-hero__card {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #dbe4ef;
  background: #fff;
}

.register-hero__card strong {
  color: #17212f;
  font-size: 18px;
  font-weight: 800;
}

.register-hero__card span {
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.7;
}

.invite-note {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #cdeed9;
  background: #f0fdf4;
  color: #14532d;
  line-height: 1.8;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.messages {
  margin-bottom: 20px;
}

.messages p {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  margin: 0;
}

.login-container .messages p {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.register-container .messages p {
  background: #e7f7ee;
  color: #0f5132;
}

.register-container .messages p.error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.register-container .messages p.warning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.field-error {
  margin-top: 6px;
  color: #9f1239;
  font-size: 13px;
}

.footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
}

.footer a {
  color: var(--auth-green);
  text-decoration: none;
  font-weight: 800;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-height: 720px) {
  body {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .register-container {
    padding: 32px 20px;
  }
}
