/**
 * FindQuiz Auth — стили в духе модалки входа FQ
 * Цвета: orange #FFAF50 / warning #f0ad4e, blue #5199FF, текст gray / #333
 */
* { box-sizing: border-box; }

body.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.42857143;
  color: #333;
  background: #f5f6f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
}

.auth-shell {
  width: 100%;
  max-width: 420px;
}

.auth-brand-bar {
  text-align: center;
  margin-bottom: 18px;
}
.auth-brand-bar a {
  text-decoration: none;
  color: inherit;
}
.auth-logo-text {
  font-size: 28px;
  font-weight: 700;
  color: #FFAF50;
  letter-spacing: -0.02em;
}
.auth-logo-text span {
  color: #5199FF;
}
.auth-logo-img {
  display: inline-block;
  height: 48px;
  width: auto;
  max-width: 220px;
  vertical-align: middle;
}
.auth-captcha {
  margin: 8px 0 16px;
  min-height: 100px;
}

.auth-card {
  width: 100%;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 28px 28px 24px;
}

.auth-card-header {
  margin: 0 0 18px;
  position: relative;
}
.auth-card-header .smaller {
  margin: 0 0 4px;
  color: gray;
  font-size: 15px;
  font-weight: 500;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.auth-card-header .auth-title {
  margin: 0 0 6px;
  color: #222;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}
.auth-card-header .auth-sub {
  margin: 0;
  color: #666;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}
.auth-card-header .client-badge {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #888;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.auth-lead {
  margin: 0 0 18px;
  color: #555;
  font-size: 13px;
}
.auth-lead a {
  color: #5199FF;
  text-decoration: none;
}
.auth-lead a:hover {
  text-decoration: underline;
}

.auth-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px 8px;
}
.auth-col {
  flex: 1 1 200px;
  padding: 0 8px;
  margin-bottom: 12px;
}

.auth-fields-stack {
  margin-bottom: 4px;
}
.auth-fields-stack .auth-field {
  margin-bottom: 14px;
}

.auth-field label,
.control-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #555;
  font-size: 13px;
}

.input-group {
  display: table;
  width: 100%;
  border-collapse: separate;
}
.input-group-addon {
  display: table-cell;
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: normal;
  line-height: 1;
  color: #555;
  text-align: center;
  background-color: #eee;
  border: 1px solid #ccc;
  border-right: 0;
  border-radius: 4px 0 0 4px;
}
.input-group .form-control {
  display: table-cell;
  width: 100%;
  margin: 0;
  border-radius: 0 4px 4px 0;
}

.form-control {
  display: block;
  width: 100%;
  height: 38px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
  transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
.form-control:focus {
  border-color: #66afe9;
  outline: 0;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 8px;
}
.auth-actions-secondary {
  color: #666;
  font-size: 13px;
  line-height: 34px;
}
.auth-actions-secondary a {
  color: #5199FF;
  text-decoration: none;
}
.auth-actions-secondary a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-block;
  margin-bottom: 0;
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  padding: 8px 16px;
  font-size: 14px;
  line-height: 1.42857143;
  border-radius: 50px;
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
}
.btn i { margin-right: 6px; }

.btn-warning {
  color: #fff;
  background-color: #f0ad4e;
  border-color: #eea236;
  min-width: 140px;
}
.btn-warning:hover {
  color: #fff;
  background-color: #ec971f;
  border-color: #d58512;
  text-decoration: none;
}
.btn-primary {
  color: #fff;
  background-color: #5199FF;
  border-color: #5199FF;
}
.btn-primary:hover {
  color: #fff;
  background-color: #3d86ef;
  border-color: #3d86ef;
  text-decoration: none;
}
.btn-block {
  display: block;
  width: 100%;
}

.btn-blue,
.blue-btn {
  color: #fff !important;
  background: #5199FF;
  border-radius: 20px;
  border: none;
  outline: none;
  width: 100%;
  padding: 10px 16px;
  margin-top: 8px;
}
.btn-blue:hover,
.blue-btn:hover {
  background: #3d86ef;
  color: #fff !important;
  text-decoration: none;
}

.line-login {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  position: relative;
  color: #888;
  margin: 18px 0 8px;
}
.line-login span,
.line-login p {
  background-color: #fff;
  position: relative;
  z-index: 1;
  padding: 0 20px;
  margin: 0;
  display: inline-block;
}
.line-login:before,
.line-login:after {
  content: '';
  display: block;
  width: 38%;
  height: 1px;
  background-color: #e5e5e5;
  position: absolute;
  top: 50%;
  margin-top: -1px;
  z-index: 0;
}
.line-login:before { right: 0; }
.line-login:after { left: 0; }

.auth-social {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}
.auth-social-col {
  flex: 1 1 160px;
  padding: 0 10px;
  box-sizing: border-box;
}
.auth-social .blue-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.3;
}

.auth-error {
  background: #f2dede;
  color: #a94442;
  border: 1px solid #ebccd1;
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 14px;
  font-size: 13px;
}
.auth-ok {
  background: #dff0d8;
  color: #3c763d;
  border: 1px solid #d6e9c6;
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 14px;
  font-size: 13px;
}

.auth-chooser {
  margin: 0;
}
.auth-chooser-account {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  gap: 12px;
  padding: 14px 12px;
  margin: 0 0 14px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fafbfc;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.auth-chooser-account:hover {
  border-color: #5199FF;
  background: #f3f8ff;
}
.auth-chooser-avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #5199FF;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  overflow: hidden;
}
.auth-chooser-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.auth-chooser-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.auth-chooser-name {
  font-weight: 600;
  font-size: 14px;
  color: #222;
}
.auth-chooser-email {
  font-size: 13px;
  color: #555;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-chooser-hint {
  font-size: 12px;
  color: #5199FF;
}
.auth-chooser-arrow {
  color: #bbb;
  font-size: 12px;
}
.auth-chooser-switch {
  margin-top: 4px;
}

.auth-links {
  margin-top: 16px;
  font-size: 13px;
  color: #666;
  text-align: center;
}
.auth-links a {
  color: #5199FF;
  text-decoration: none;
}
.auth-links a:hover {
  text-decoration: underline;
}

.auth-footer-note {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #999;
}

@media (max-width: 520px) {
  .auth-card {
    padding: 20px 16px 18px;
  }
  .auth-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .btn-warning,
  .btn-primary {
    width: 100%;
  }
  .auth-actions-secondary {
    text-align: center;
  }
}
