/**
 * Modal & change-password dialog — homepage only (new design)
 */

body.sse-home .blocker {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
  background-color: rgba(11, 31, 58, 0.72);
  text-align: center;
}

body.sse-home .blocker::before {
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  margin-right: -0.05em;
}

body.sse-home .blocker.behind {
  background-color: transparent;
}

body.sse-home .modal {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  z-index: 1001;
  max-width: 520px;
  box-sizing: border-box;
  width: 90%;
  background: #fff;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(11, 31, 58, 0.25);
  text-align: left;
  overflow: hidden;
}

body.sse-home .modal a.close-modal {
  position: absolute;
  top: 10px;
  right: 12px;
  display: block;
  width: 28px;
  height: 28px;
  text-indent: -9999px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='13' fill='rgba(255,255,255,0.2)'/%3E%3Cpath d='M9 9l10 10M19 9L9 19' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

body.sse-home .modal a.close-modal:hover {
  opacity: 1;
}

body.sse-home .login_form.modal {
  border-radius: 8px;
  line-height: 1.5;
  padding: 0;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
}

body.sse-home .login_form h3 {
  margin: 0;
  padding: 16px 48px 16px 20px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #12325c 0%, #1a5f8a 100%);
  border-bottom: 2px solid #c4a052;
}

body.sse-home .login_form.modal p {
  padding: 14px 24px;
  margin: 0;
  border-bottom: 1px solid #e4edf5;
  background: #fff;
  overflow: hidden;
}

body.sse-home .login_form.modal p:last-child {
  border-bottom: none;
  padding: 16px 24px 20px;
  text-align: center;
}

body.sse-home .login_form.modal p label {
  float: left;
  text-align: right;
  margin-right: 12px;
  font-weight: 600;
  color: #1a2d42;
  font-size: 13px;
  width: 140px;
  line-height: 32px;
}

body.sse-home .login_form.modal p input[type="text"],
body.sse-home .login_form.modal p input[type="password"] {
  font: 13px/1.4 "DM Sans", "Segoe UI", system-ui, sans-serif;
  padding: 6px 10px;
  border: 1px solid #d4dee8;
  border-radius: 4px;
  width: 220px;
  box-sizing: border-box;
  color: #1a2d42;
  background: #f7fafc;
}

body.sse-home .login_form.modal p input:focus {
  outline: none;
  border-color: #1a5f8a;
  box-shadow: 0 0 0 2px rgba(26, 95, 138, 0.15);
}

body.sse-home .login_form.modal #msg {
  color: #c0392b !important;
  font-size: 13px;
  text-align: center;
  padding: 10px 24px;
}

body.sse-home .login_form.modal input[type="button"] {
  cursor: pointer;
  min-width: 150px;
  height: 36px;
  padding: 0 24px;
  border: none;
  border-radius: 4px;
  background: linear-gradient(180deg, #1a5f8a 0%, #12325c 100%);
  color: #fff;
  font: 600 13px/1 "DM Sans", "Segoe UI", sans-serif;
  letter-spacing: 0.03em;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

body.sse-home .login_form.modal input[type="button"]:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

body.sse-home .ui-widget-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 58, 0.5);
  opacity: 1;
}
