/***
Login — enterprise form vibe (white, thin borders, compact)
***/

.login-modern {
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  background: #515255 !important;
  color: #333;
  font-family: "Inter", "Open Sans", Arial, sans-serif;
  font-size: 13px;
}

.login-modern .login-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 40px 16px;
  box-sizing: border-box;
}

.login-modern .login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 32px 28px 24px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}

.login-modern .login-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 32px;
}

.login-modern .login-mark img {
  display: block;
  height: auto;
  width: auto;
  max-height: 128px;
  max-width: 220px;
  object-fit: contain;
}

.login-modern .login-mark h1 {
  margin: 14px 0 0;
  color: #333;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.login-modern .login-alert {
  margin: 0 0 16px;
  padding: 8px 10px;
  border: 1px solid #f0c2c0;
  border-radius: 4px;
  background: #fff5f5;
  color: #a94442;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.login-modern .login-alert-error {
  background: #fff5f5;
  color: #a94442;
}

.login-modern .login-form {
  margin: 0;
  padding: 0;
}

.login-modern .login-title {
  margin: 0 0 18px;
  color: #000;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.login-modern .form-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 16px;
}

.login-modern .form-field label {
  display: block;
  margin: 0 0 6px;
  color: #333;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.login-modern .form-field .required {
  color: #e53935;
  font-weight: 700;
}

.login-modern .input-wrap {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fff;
}

.login-modern .input-wrap:focus-within {
  border-color: #bdbdbd;
}

.login-modern .input-wrap input[type="text"],
.login-modern .input-wrap input[type="email"],
.login-modern .input-wrap input[type="password"] {
  flex: 1 1 auto;
  width: 100%;
  height: 36px;
  padding: 6px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  color: #333;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.login-modern .input-wrap input:focus {
  outline: none;
}

.login-modern .input-wrap input::placeholder {
  color: #333;
  font-weight: 700;
  opacity: 1;
}

.login-modern .toggle-password {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #888;
  cursor: pointer;
}

.login-modern .toggle-password:hover,
.login-modern .toggle-password:focus {
  color: #333;
  outline: none;
}

.login-modern .login-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 16px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.login-modern .btn-login {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 18px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #333;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.login-modern .btn-login:hover,
.login-modern .btn-login:focus {
  background: #1a1a1a;
  color: #fff;
  outline: none;
}

.login-modern .login-notice {
  width: 100%;
  margin: 12px 0 0;
  color: #a94442;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
}

.login-modern .login-homepage-note {
  margin-top: 16px;
  padding: 8px 10px;
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
  line-height: 1.45;
}

.login-modern .login-copy {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  color: #999;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.login-modern .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cookie-consent {
  position: fixed;
  z-index: 10000;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  padding: 0 16px;
  box-sizing: border-box;
}

.cookie-consent[hidden],
.cookie-consent-view[hidden],
.cookie-policy-modal[hidden] {
  display: none !important;
}

.cookie-consent-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
  padding: 22px 24px 16px;
  box-sizing: border-box;
}

.cookie-consent-title {
  margin: 0 0 10px;
  color: #111;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.cookie-consent-text {
  margin: 0 0 18px;
  color: #222;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.cookie-consent-text a {
  color: #1863dc;
  text-decoration: underline;
}

.cookie-consent-text a:hover,
.cookie-consent-text a:focus {
  color: #124db0;
}

.cookie-consent-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.cookie-btn {
  flex: 1 1 0;
  height: 40px;
  padding: 0 12px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.cookie-btn-outline {
  background: #fff;
  border: 1px solid #1863dc;
  color: #1863dc;
}

.cookie-btn-outline:hover,
.cookie-btn-outline:focus {
  background: #f4f8ff;
  outline: none;
}

.cookie-btn-primary {
  background: #1863dc;
  border: 1px solid #1863dc;
  color: #fff;
}

.cookie-btn-primary:hover,
.cookie-btn-primary:focus {
  background: #1454bb;
  border-color: #1454bb;
  color: #fff;
  outline: none;
}

.cookie-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.cookie-category:last-of-type {
  margin-bottom: 18px;
}

.cookie-category h3 {
  margin: 0 0 4px;
  color: #111;
  font-size: 14px;
  font-weight: 700;
}

.cookie-category p {
  margin: 0;
  color: #555;
  font-size: 12px;
  line-height: 1.45;
}

.cookie-switch {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 24px;
  margin-top: 2px;
  cursor: pointer;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-switch span {
  display: block;
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: #cfd4dc;
}

.cookie-switch input:checked + span {
  background: #1863dc;
}

.cookie-switch span:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cookie-switch input:checked + span:after {
  left: 21px;
}

.cookie-switch input:disabled + span {
  background: #9bb8ee;
  cursor: not-allowed;
}

.cookie-policy-modal {
  position: fixed;
  z-index: 10001;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
}

.cookie-policy-card {
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  padding: 22px 24px 18px;
  box-sizing: border-box;
}

.cookie-policy-card h2 {
  margin: 0 0 12px;
  color: #111;
  font-size: 20px;
  font-weight: 700;
}

.cookie-policy-card p {
  margin: 0 0 12px;
  color: #333;
  font-size: 14px;
  line-height: 1.55;
}

.cookie-policy-card ul {
  margin: 0 0 16px;
  padding-left: 18px;
  color: #333;
  font-size: 14px;
  line-height: 1.55;
}

.cookie-policy-card .cookie-btn {
  width: auto;
  min-width: 120px;
  flex: 0 0 auto;
}

@media (max-width: 480px) {
  .login-modern .login-card {
    padding: 24px 18px 18px;
  }

  .login-modern .login-mark img {
    height: auto;
    max-height: 96px;
    max-width: 180px;
  }

  .login-modern .login-actions {
    align-items: stretch;
  }

  .login-modern .btn-login {
    width: 100%;
  }

  .cookie-consent {
    bottom: 12px;
  }

  .cookie-consent-card {
    padding: 18px 16px 14px;
  }

  .cookie-consent-actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }
}
