body.login-page {
  margin: 0;
  font-family: "Outfit", sans-serif;
  background:
    radial-gradient(900px 380px at -10% -20%, #e7f1ff 0%, transparent 60%),
    radial-gradient(800px 320px at 110% -30%, #fff2e8 0%, transparent 62%),
    #f6f8fc;
  color: #172744;
}

body.login-page.modal-open {
  overflow: hidden;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
}

.login-brand {
  position: fixed;
  top: 18px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: #13233f;
  text-decoration: none;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2a84ff 0%, #0e61de 100%);
  box-shadow: 0 0 0 6px rgba(42, 132, 255, 0.14);
}

.login-card {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #fff;
  border: 1px solid #e4ebf7;
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(18, 40, 85, 0.1);
  overflow: hidden;
}

.login-visual {
  padding: 34px;
  background: linear-gradient(180deg, #1368e8 0%, #0e58c3 100%);
  color: #fff;
}

.visual-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.92;
  font-weight: 700;
}

.login-visual h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}

.login-visual ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.login-visual li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
}

.login-visual li i {
  margin-top: 2px;
}

.login-panel {
  padding: 34px;
}

.login-panel h1 {
  margin: 0;
  font-size: 34px;
  color: #13233f;
}

.login-subtitle {
  margin: 8px 0 18px;
  color: #5e6f8f;
}

.login-alert {
  margin-bottom: 14px;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid #ffd1d6;
  background: #fff1f3;
  color: #9f1f32;
  font-weight: 600;
}

.login-form {
  display: grid;
  gap: 12px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #465a7d;
  font-weight: 600;
  font-size: 14px;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  border: 1px solid #cfdaec;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: #13233f;
  background: #fff;
}

.form-group input:focus {
  border-color: #1173ff;
  box-shadow: 0 0 0 3px rgba(17, 115, 255, 0.14);
  outline: none;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 44px !important;
}

.icon-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #57709b;
  cursor: pointer;
}

.icon-btn:hover {
  background: #edf3ff;
  color: #1173ff;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.remember-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #425676;
  font-size: 14px;
}

.remember-option input {
  width: 16px;
  height: 16px;
  accent-color: #1173ff;
}

.inline-link {
  color: #1173ff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

.login-button {
  margin-top: 2px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: #1173ff;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
}

.login-button:hover {
  background: #0d5ed2;
}

.or-separator {
  position: relative;
  margin: 16px 0;
  text-align: center;
}

.or-separator::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid #e2eaf7;
}

.or-separator span {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 0 10px;
  color: #6c7fa3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.google-login-button {
  display: inline-flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d4deef;
  border-radius: 10px;
  padding: 11px 12px;
  color: #213452;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
}

.google-login-button:hover {
  background: #f5f8ff;
}

.google-login-button img {
  width: 20px;
  height: 20px;
}

.auth-meta {
  margin: 16px 0 0;
  color: #607293;
  font-size: 14px;
}

.auth-meta a {
  color: #1173ff;
  font-weight: 600;
  text-decoration: none;
}

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

.frame-warning-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(12, 27, 53, 0.7);
  backdrop-filter: blur(3px);
}

.frame-warning-modal[hidden] {
  display: none;
}

.frame-warning-panel {
  width: min(520px, 100%);
  border: 1px solid #d7e3f8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(16, 40, 83, 0.2);
  padding: 24px;
  text-align: center;
}

.frame-warning-panel h2 {
  margin: 0;
  color: #13233f;
  font-size: 28px;
}

.frame-warning-panel p {
  margin: 12px 0 0;
  color: #5c6f91;
  line-height: 1.6;
}

.frame-warning-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.frame-warning-open-link {
  min-width: 210px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.frame-warning-continue-btn {
  min-width: 210px;
  border: 1px solid #cfdaf0;
  border-radius: 10px;
  background: #fff;
  color: #1f3150;
  padding: 11px 14px;
  font-weight: 600;
  cursor: pointer;
}

.frame-warning-continue-btn:hover {
  background: #f3f7ff;
}

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

  .login-visual {
    display: none;
  }
}

@media (max-width: 520px) {
  .login-shell {
    padding: 14px;
  }

  .login-brand {
    position: static;
    margin-bottom: 8px;
    justify-self: start;
  }

  .login-panel {
    padding: 18px;
  }

  .login-panel h1 {
    font-size: 28px;
  }

  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .frame-warning-panel {
    padding: 18px;
  }

  .frame-warning-panel h2 {
    font-size: 24px;
  }

  .frame-warning-actions {
    flex-direction: column;
  }

  .frame-warning-open-link,
  .frame-warning-continue-btn {
    width: 100%;
    min-width: 0;
  }
}
