/**
 * cdn/public_html/assets/css/auth-work.css
 */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-family: var(--font-primary);
  background: #08090d;
  color: var(--prymary-color);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
button {
  font-family: var(--font-primary);
  cursor: pointer;
  border: none;
  background: none;
}

.carousel-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.5);
  background-blend-mode: multiply;
}

.auth-root {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px 16px;
}

.auth-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 400px;
  background: rgba(17, 17, 17, 0.85);
  border: var(--border-all-color);
  padding: 40px 36px;
  animation: authFadeUp 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

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

/* ===== LOGO ===== */
.auth-work-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.auth-work-logo img {
  height: 36px;
  width: auto;
}

/* ===== STEP TRANSITIONS ===== */
.auth-step {
  animation: authFadeUp 0.28s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

/* ===== HEADING ===== */
.auth-heading {
  text-align: center;
  margin-bottom: 20px;
}

.auth-heading p {
  font-size: 13.5px;
  color: var(--prymary-color);
  line-height: 1.5;
}

/* ===== FORM ===== */
.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--prymary-color);
  margin-bottom: 6px;
}

.input-wrap {
  position: relative;
}

.field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: var(--input-bg-color);
  border: var(--border-all-color);
  font-size: 13.5px;
  color: var(--text-title);
  font-family: var(--font-primary);
  transition: border-color 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.field input::placeholder {
  color: rgba(168, 168, 168, 0.4);
}

.field input:focus {
  border-color: rgba(0, 204, 153, 0.3);
}

.field input.has-toggle {
  padding-right: 2.75rem;
}

.field input.input-error {
  border-color: var(--color-attention);
}

.pw-toggle {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--prymary-color);
  font-size: 1rem;
  display: flex;
  padding: 0.25rem;
  transition: color 0.2s;
}
.pw-toggle:hover {
  color: var(--text-title);
}

.field-error {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-attention);
  margin-top: 6px;
  display: none;
}
.field-error.visible {
  display: block;
}

/* ===== SUBMIT BUTTON ===== */
.btn-primary {
  width: 100%;
  height: 44px;
  background: var(--primary);
  color: #050608;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  font-family: var(--font-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  margin-top: 18px;
  position: relative;
}

.btn-primary:hover:not(:disabled) {
  background: var(--text-color-hover);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(5, 6, 8, 0.3);
  border-top-color: #050608;
  border-radius: 50%;
  animation: authWorkSpin 0.7s linear infinite;
  flex-shrink: 0;
}

.btn-primary.loading .btn-spinner {
  display: block;
}

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

/* ===== BACK BUTTON ===== */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--prymary-color);
  font-size: 12.5px;
  font-family: var(--font-primary);
  cursor: pointer;
  margin-bottom: 20px;
  transition: color 0.2s;
}
.btn-back:hover {
  color: var(--text-title);
}
.btn-back i {
  font-size: 14px;
}

/* ===== EMAIL TAG (step senha) ===== */
.email-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 204, 153, 0.08);
  color: var(--text-color);
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 204, 153, 0.2);
  max-width: 100%;
  overflow: hidden;
}
.email-tag span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== RECAPTCHA ===== */
.recaptcha-wrap {
  margin-top: 14px;
}

/* ===== PIN INPUTS ===== */
.pin-grid {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin: 4px 0 6px;
  flex-wrap: wrap;
}

.pin-input {
  width: 34px;
  height: 42px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--input-bg-color);
  border: var(--border-all-color);
  color: var(--text-title);
  outline: none;
  transition: border-color 0.2s;
}

.pin-input:focus {
  border-color: rgba(0, 204, 153, 0.3);
}

.pin-input.input-error {
  border-color: var(--color-attention);
}

/* ===== ALERTS ===== */
.alert-bar {
  padding: 11px 14px;
  font-size: 12.5px;
  font-weight: 500;
  margin-top: 14px;
  display: none;
  animation: authFadeUp 0.22s cubic-bezier(0.25, 0.8, 0.25, 1) both;
  line-height: 1.45;
  align-items: flex-start;
  gap: 8px;
}
.alert-bar.visible {
  display: flex;
}
.alert-bar i {
  font-size: 15px;
  margin-top: 1px;
  flex-shrink: 0;
}
.alert-bar.alert-error {
  background: var(--danger-bg);
  border: 1px solid rgba(136, 62, 62, 0.35);
  color: #d98787;
}
.alert-bar.alert-info {
  background: rgba(33, 150, 243, 0.08);
  border: 1px solid rgba(33, 150, 243, 0.25);
  color: var(--info);
}

/* ===== SECURITY FOOTER ===== */
.auth-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: var(--border-all-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(168, 168, 168, 0.55);
  font-size: 11.5px;
}
.auth-footer i {
  font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .auth-card {
    padding: 32px 22px;
  }
  .pin-input {
    width: 30px;
    height: 40px;
    font-size: 15px;
  }
  .pin-grid {
    gap: 5px;
  }
}
