/* ==============================================================================
   Стили экрана авторизации бюро «Сенкевич»
   ============================================================================== */

.login-wrapper {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-4);
  box-sizing: border-box;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--color-surface, #ffffff);
  border: 1px solid #e2e6df;
  padding: 36px 32px;
  box-sizing: border-box;
  animation: loginFadeIn .25s ease-out;
}

@keyframes loginFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--color-primary, #375b48);
  background: #edf3ee;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.login-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-text, #29312f);
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.login-subtitle {
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-text-muted, #66716d);
  margin: 0;
}

.login-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fdf2f2;
  border: 1px solid #f8b4b4;
  color: #9b1c1c;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.35;
}

.login-alert-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text, #29312f);
}

.form-hint {
  font-size: 11px;
  color: var(--color-text-muted, #66716d);
  font-weight: 400;
}

.input-prefix-wrapper,
.input-suffix-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-prefix {
  position: absolute;
  left: 12px;
  font-weight: 600;
  color: var(--color-text-muted, #66716d);
  font-size: 15px;
  pointer-events: none;
  user-select: none;
}

.login-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 14.5px;
  color: var(--color-text, #29312f);
  background: #ffffff;
  border: 1px solid var(--color-border, #abb5ae);
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}

.login-input:focus {
  outline: none;
  border-color: var(--color-primary, #375b48);
  box-shadow: 0 0 0 3px rgba(55, 91, 72, 0.12);
}

.login-input.with-prefix {
  padding-left: 30px;
}

.login-input.with-suffix {
  padding-right: 42px;
  font-family: monospace, -apple-system, sans-serif;
  letter-spacing: 0.2em;
  font-size: 16px;
}

.btn-toggle-visibility {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 16px;
  padding: 6px 8px;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity .15s;
}

.btn-toggle-visibility:hover {
  opacity: 1;
}

.btn-login-submit {
  width: 100%;
  height: 44px;
  background: var(--color-primary, #375b48);
  color: #ffffff;
  border: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  transition: background-color .15s, transform .05s;
}

.btn-login-submit:hover:not(:disabled) {
  background: #2b4637;
}

.btn-login-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-login-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.login-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: loginSpin 0.7s linear infinite;
}

@keyframes loginSpin {
  to {
    transform: rotate(360deg);
  }
}

.login-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #f0f2ee;
  text-align: center;
}

.login-security-notice {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-primary, #375b48);
  margin-bottom: 6px;
}

.login-help {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--color-text-muted, #66716d);
  margin: 0;
}

@media (max-width: 480px) {
  .login-card {
    padding: 28px 20px;
  }
  .login-title {
    font-size: 20px;
  }
}
