:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: #b8d8d4;
  color: #edf6f5;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: #b8d8d4;
}

button, input { font: inherit; letter-spacing: 0; }

.cloud-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  padding: 38px 20px 30px;
}

.brand {
  align-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 38px;
  color: #517c79;
  font-size: 18px;
  font-weight: 500;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 3px;
  padding: 6px;
  border: 2px solid #0c9c99;
  border-radius: 8px;
  transform: rotate(45deg);
}

.brand-mark span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #0c9c99;
}

.brand-name strong { color: #3f6865; }

.login-panel {
  width: min(390px, calc(100vw - 32px));
  padding: 24px 22px 20px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  background: #29302f;
  box-shadow: 0 8px 24px rgba(25, 54, 52, .34);
}

h1 {
  margin: 0 0 24px;
  font-size: 20px;
  line-height: 1.25;
}

label {
  display: block;
  margin: 0 0 7px;
  color: #cbd6d5;
  font-size: 13px;
  font-weight: 600;
}

input[type="text"], input[type="password"] {
  width: 100%;
  height: 44px;
  margin: 0 0 16px;
  padding: 0 12px;
  border: 1px solid #66706f;
  border-radius: 6px;
  outline: none;
  background: #151817;
  color: #f3f8f7;
}

input:focus {
  border-color: #1ba8e8;
  box-shadow: 0 0 0 3px rgba(27, 168, 232, .18);
}

.password-field { position: relative; }
.password-field input { padding-right: 48px; }

.show-password {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #d7e1e0;
  cursor: pointer;
}

.show-password.is-visible { color: #1ba8e8; }

.remember {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 0 18px;
  cursor: pointer;
}

.remember input { width: 18px; height: 18px; accent-color: #139ee1; }

.login-button {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: #119ee4;
  color: #07191f;
  font-weight: 800;
  cursor: pointer;
}

.login-button:hover { background: #2aaae9; }

.text-button {
  display: block;
  margin: 18px auto 0;
  border: 0;
  background: transparent;
  color: #edf6f5;
  font-weight: 700;
  cursor: pointer;
}

.text-button:hover { color: #62c8ef; }

.form-message {
  min-height: 18px;
  margin: 10px 0 -5px;
  color: #f2c071;
  font-size: 12px;
  text-align: center;
}

footer {
  align-self: end;
  padding: 8px 18px;
  border-radius: 18px;
  background: #29302f;
  color: #edf6f5;
  box-shadow: 0 5px 16px rgba(25, 54, 52, .26);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 520px) {
  .cloud-shell { padding: 24px 16px 20px; }
  .brand { margin-bottom: 24px; font-size: 16px; }
  .login-panel { padding: 22px 18px 18px; }
  h1 { font-size: 19px; }
}
