body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f6f9;
  font-family: "Segoe UI", sans-serif;
}

.login-card {
  max-width: 510px;
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  background-size: 100%;
  padding: 2rem;
}

.login-card h4, .login-card .text-muted { 
  text-shadow: 0 0 1px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff, 0 0 5px #fff, 0 0 6px #fff, 0 0 7px #fff, 0 0 8px #fff, 0 0 9px #fff, 0 0 10px #fff, 0 0 11px #fff, 0 0 10px #fff, 0 0 11px #fff, 0 0 12px #fff, 0 0 13px #fff, 0 0 14px #fff, 0 0 15px #fff;
}

.form-control:focus {
  box-shadow: none;
  border-color: #86b7fe;
  /* azzurro tenue */
}

.btn-login {
  background: #6c63ff;
  /* viola tenue */
  border: none;
}

.btn-login:hover {
  background: #5a54d1;
}

.small-link {
  color: #6c757d;
}

.small-link:hover {
  color: #5a54d1;
  text-decoration: underline;
}

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #4a4945;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
}

.terms-check .form-check-input { flex: 0 0 auto; margin-top: 3px; }
.terms-check a { color: #5a54d1; }
.terms-check a:hover { text-decoration: underline; }

.required-marker { color: #dc3545; font-weight: 700; }

.language-switcher i {
  margin-right: 6px;
}

.language-switcher a {
  padding: 0 4px;
  border-color: lightgray;
}

.telegram-link i {
  margin-right: 6px;
}

body.embedded-login {
  min-height: auto;
  display: block;
  background: #fff;
  color: #1a1a18;
  font-family: "Segoe UI", Arial, sans-serif;
}

.embedded-login .login-card {
  max-width: none;
  border-radius: 0;
  box-shadow: none;
  padding: 24px 30px 30px;
  background: #fff !important;
}

.embedded-login .login-card > h4,
.embedded-login .login-card > p.text-muted {
  display: none;
}

.embedded-login .form-signin {
  display: grid;
  gap: 18px;
}

.embedded-login .form-signin .mb-3 {
  margin: 0 !important;
}

.embedded-login .form-label {
  display: block;
  margin: 0 0 7px;
  color: #4a4945;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}

.embedded-login .input-group {
  display: block;
}

.embedded-login .input-group-text {
  display: none;
}

.embedded-login .form-control {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #dcd9cf;
  border-radius: 3px !important;
  background: #fafaf7;
  color: #1a1a18;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.embedded-login .form-control:hover {
  border-color: #c7c5bc;
}

.embedded-login .form-control:focus {
  border-color: #e8b23f;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(232,178,63,.18);
  outline: none;
}

.embedded-login .btn-login {
  min-height: 52px;
  margin-top: 2px !important;
  border-radius: 3px;
  background: #1a1a18;
  color: #f4f2eb !important;
  font-size: 14px;
  font-weight: 600 !important;
  letter-spacing: .02em;
  transition: background .2s, color .2s, transform .2s;
}

.embedded-login .btn-login:hover,
.embedded-login .btn-login:focus {
  background: #e8b23f;
  color: #1a1a18 !important;
}

.embedded-login .btn-login:active {
  transform: translateY(1px);
}

.embedded-login .btn-login svg {
  display: none;
}

.embedded-login .text-danger {
  display: block;
  padding: 10px 12px;
  border-radius: 3px;
  background: #f1e1dc;
  color: #8a3a2c !important;
  font-size: 13px;
  text-align: left;
}

.embedded-login .terms-check a { color: #72520e; font-weight: 600; }

@media (max-width: 520px) {
  .embedded-login .login-card {
    padding: 20px 22px 24px;
  }
}
