* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #eef3f9;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(420px, 560px);
  min-height: 100vh;
}

.brand-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 8vw, 120px);
  color: #ffffff;
  background: #123b67;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  font-size: 28px;
  font-weight: 700;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 32px;
}

.brand-area p {
  margin-top: 12px;
  color: #c9d9e9;
  font-size: 16px;
}

.login-panel {
  align-self: center;
  margin: 32px;
  padding: 32px;
  border: 1px solid #d4deea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(27, 52, 79, 0.08);
}

[hidden] {
  display: none !important;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 26px;
  padding: 4px;
  border-radius: 8px;
  background: #edf3fa;
}

.auth-tab {
  border-color: transparent;
  color: #53667d;
  background: transparent;
}

.auth-tab.active {
  color: #155db8;
  border-color: #c7d8ed;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(27, 52, 79, 0.08);
}

h2 {
  font-size: 22px;
}

.login-hint {
  margin: 8px 0 26px;
  color: #68788b;
  font-size: 13px;
}

.join-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.text-button {
  height: auto;
  padding: 4px 0;
  border: 0;
  color: #53667d;
  background: transparent;
}

.forgot-button {
  justify-self: end;
  margin-top: -2px;
  color: #1d67d1;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.meeting-code-input {
  height: 50px;
  font-size: 21px;
  letter-spacing: 0.12em;
}

form,
label {
  display: grid;
}

form {
  gap: 10px;
}

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

.form-grid > div {
  min-width: 0;
}

label {
  margin-top: 4px;
  color: #40536a;
  font-size: 13px;
}

input,
button {
  height: 42px;
  border-radius: 6px;
  font: inherit;
}

input {
  width: 100%;
  padding: 0 12px;
  border: 1px solid #cbd7e5;
  outline: none;
}

input:focus {
  border-color: #1d67d1;
  box-shadow: 0 0 0 3px rgba(29, 103, 209, 0.12);
}

button {
  border: 1px solid #1d67d1;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 8px;
}

.secondary-button {
  color: #1d67d1;
  background: #ffffff;
}

.primary-button {
  width: 100%;
  margin-top: 4px;
  color: #ffffff;
  background: #1d67d1;
}

.message {
  min-height: 20px;
  color: #b42318;
  font-size: 13px;
}

.message.success {
  color: #167044;
}

@media (max-width: 760px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .brand-area {
    min-height: 210px;
    padding: 28px 24px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    font-size: 23px;
  }

  h1 {
    font-size: 25px;
  }

  .login-panel {
    width: calc(100% - 32px);
    margin: 28px auto;
    padding: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}
