/* Easy Quant — login page. Перекрывает /upload/styles.css. */

.login-container {
  max-width: 480px;
  margin: 0 auto;
}

.login-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text, #0a0a0a);
  margin: 12px 0 8px;
}

.login-input {
  width: 100%;
  font-size: 1.05rem;
  padding: 14px 16px;
  font-family: inherit;
  border: 1.5px solid #e4e6eb;
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.login-input:focus {
  outline: none;
  border-color: #40a7e3;
  box-shadow: 0 0 0 3px rgba(64, 167, 227, 0.15);
}

.login-code-input {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-align: center;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.login-hint {
  font-size: 0.85rem;
  color: #8e8e93;
  text-align: center;
  margin: 12px 0 0;
}

.login-error {
  font-size: 0.9rem;
  color: #c62828;
  text-align: center;
  margin: 10px 0 0;
  min-height: 1.2em;
}

.login-divider {
  position: relative;
  margin: 28px 0 18px;
  text-align: center;
}

.login-divider::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: #e4e6eb;
}

.login-divider span {
  position: relative;
  background: #fff;
  padding: 0 14px;
  font-size: 0.85rem;
  color: #8e8e93;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.login-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn-link {
  background: none;
  border: none;
  padding: 6px 8px;
  color: #40a7e3;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.btn-link:hover:not(:disabled) {
  background: rgba(64, 167, 227, 0.08);
}

.btn-link:disabled {
  color: #c4c7cc;
  cursor: not-allowed;
}

.success-mark, .error-mark {
  font-size: 3rem;
  text-align: center;
  margin: 10px 0 8px;
}

code {
  background: rgba(64, 167, 227, 0.12);
  color: #1a78b3;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.92em;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.widget-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 16px;
  min-height: 56px;
  align-items: center;
}

.widget-wrap iframe {
  border-radius: 12px !important;
}

.needs-options {
  list-style: none;
  padding: 0;
  margin: 18px 0 22px;
  text-align: left;
}

.needs-options li {
  padding: 12px 14px;
  background: #f5f7fa;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #2c3e50;
}

.needs-options li strong {
  color: #1a78b3;
}

.btn-icon {
  display: inline-block;
  margin-right: 8px;
  font-size: 1.05em;
}

.login-disclosure {
  margin-top: 28px;
  border-top: 1px solid #ececec;
  padding-top: 18px;
}

.login-disclosure > summary {
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  color: #5a5a64;
  text-align: center;
  list-style: none;
  padding: 6px 0;
  transition: color 0.15s;
}

.login-disclosure > summary::-webkit-details-marker {
  display: none;
}

.login-disclosure > summary::after {
  content: " ▼";
  font-size: 0.7em;
  opacity: 0.6;
}

.login-disclosure[open] > summary::after {
  content: " ▲";
}

.login-disclosure > summary:hover {
  color: #1a78b3;
}

.login-alt {
  margin: 16px 0 22px;
  padding: 14px;
  background: #f9fafb;
  border-radius: 10px;
}

.login-alt-title {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #5a5a64;
}
