.auth-page {
  min-height: 100vh;
  margin: 0;
  background: #eef2f8;
}

.auth-layout {
  display: grid;
  grid-template-columns: 60% 40%;
  min-height: 100vh;
}


.auth-banner {
  position: relative;
  background-color: #004297;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.auth-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0, 40, 100, 0.4) 0%,
    rgba(0, 66, 151, 0.15) 55%,
    rgba(255, 255, 255, 0.06) 100%
  );
}


.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 40px;
  background: #ffffff;
}

.auth-box {
  width: 100%;
  max-width: 380px;
}

.auth-brand {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo {
  display: block;
  width: min(140px, 72%);
  height: auto;
  margin: 0 auto 16px;
  object-fit: contain;
}

.auth-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.auth-desc {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}


.auth-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.auth-form {
  text-align: left;
}

.auth-form .form-group {
  margin-bottom: 16px;
}

.auth-form .form-group:last-of-type {
  margin-bottom: 0;
}

.auth-form .form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.auth-form .field-error {
  display: block;
  color: var(--danger, #dc2626);
  font-size: 0.775rem;
  margin-top: 6px;
}

.auth-form .auth-input-wrap .form-control.is-invalid,
.auth-form .auth-input-wrap:has(.form-control.is-invalid) {
  border-color: var(--danger, #dc2626);
}

.auth-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #475569;

  border-radius: 3px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-input-wrap:focus-within {
  background: #fff;
  border-color: var(--input-focus-border, #004297);
  box-shadow: var(--input-focus-ring, 0 0 0 3px rgba(0, 66, 151, 0.18));
}

.auth-input-wrap:has(.form-control.is-invalid):focus-within {
  border-color: var(--danger, #dc2626);
  box-shadow: var(--input-focus-ring-invalid, 0 0 0 3px rgba(220, 53, 69, 0.16));
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
}

.auth-input-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #94a3b8;
}

.auth-input-wrap:focus-within .auth-input-icon {
  color: var(--input-focus-border, #004297);
}

.auth-input-wrap:has(.form-control.is-invalid):focus-within .auth-input-icon {
  color: var(--danger, #dc2626);
}

.auth-input-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.auth-form .auth-input {
  flex: 1;
  min-width: 0;
  padding: 11px 0;
  border: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  font-size: 0.9375rem;
  color: #1e293b;
}

.auth-form .auth-input:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

.auth-form .auth-input::placeholder {
  color: #94a3b8;
}


.auth-office-field {
  display: none;
}

.auth-office-field.is-visible {
  display: block;
}

.auth-form select.auth-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 16px 16px;
  padding-right: 22px;
}


.auth-office-picker {
  position: relative;
}

.auth-office-trigger {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.auth-office-trigger:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.auth-office-trigger:focus,
.auth-office-trigger:focus-visible {
  outline: none;
  border-color: var(--input-focus-border, #004297);
  box-shadow: var(--input-focus-ring, 0 0 0 3px rgba(0, 66, 151, 0.18));
}

.auth-office-trigger:disabled:focus,
.auth-office-trigger:disabled:focus-visible {
  border-color: #475569;
  box-shadow: none;
}

.auth-office-trigger-text {
  flex: 1;
  min-width: 0;
  padding: 11px 0;
  font-size: 0.9375rem;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-office-trigger-text.is-placeholder {
  color: #94a3b8;
}

.auth-office-chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #94a3b8;
  transition: transform 0.2s ease, color 0.2s ease;
}

.auth-office-chevron svg {
  width: 14px;
  height: 14px;
  display: block;
}

.auth-office-picker.is-open .auth-office-chevron {
  transform: rotate(180deg);
  color: #004297;
}

.auth-office-picker.is-open .auth-input-wrap {
  background: #fff;
  border-color: #004297;
  box-shadow: 0 0 0 3px rgba(0, 66, 151, 0.1);
}

.auth-office-picker.is-open .auth-input-icon {
  color: #004297;
}

.auth-office-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  box-shadow:
    0 10px 15px rgba(15, 23, 42, 0.06),
    0 20px 40px rgba(0, 66, 151, 0.12);
  overflow: hidden;
  animation: authOfficeDropdownIn 0.18s ease;
}

@keyframes authOfficeDropdownIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-office-options {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.auth-office-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.auth-office-option:hover {
  background: #f1f5f9;
}

.auth-office-option.is-selected {
  background: #eff6ff;
}

.auth-office-option-main {
  flex: 1;
  min-width: 0;
}

.auth-office-option-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-office-option.is-selected .auth-office-option-label {
  color: #004297;
}

.auth-office-option-check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #004297;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.auth-office-option-check svg {
  width: 16px;
  height: 16px;
  display: block;
}

.auth-office-option.is-selected .auth-office-option-check {
  opacity: 1;
  transform: scale(1);
}

.auth-office-options::-webkit-scrollbar {
  width: 6px;
}

.auth-office-options::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.auth-form .form-text {
  margin-top: 6px;
  font-size: 0.75rem;
}

.auth-form .btn-primary {
  width: 100%;
  margin-top: 20px;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 3px;
  box-shadow: none;
}

.auth-form .btn-primary:hover:not(:disabled),
.auth-form .btn-primary:focus:not(:disabled) {
  box-shadow: none;
}

.auth-form .btn-primary:active:not(:disabled) {
  box-shadow: none;
}

.auth-form .btn-primary:disabled {
  cursor: not-allowed;
  box-shadow: none;
}

.auth-switch {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.8125rem;
  color: #64748b;
  text-align: center;
}

.auth-switch a {
  color: #004297;
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-copy {
  margin: 24px 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
}

.auth-page .toast-container {
  top: 16px;
  right: 16px;
}

@media (min-width: 1200px) {
  .auth-layout {
    grid-template-columns: 68% 32%;
  }

  .auth-main {
    padding: 40px 48px;
  }

  .auth-box {
    max-width: 400px;
  }

  .auth-logo {
    width: min(150px, 68%);
  }
}

@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-banner {
    min-height: 220px;
    max-height: 280px;
  }

  .auth-main {
    padding: 32px 24px 40px;
  }
}

@media (max-width: 480px) {
  .auth-banner {
    min-height: 180px;
    max-height: 220px;
  }

  .auth-card {
    padding: 22px 18px 20px;
  }

  .auth-title {
    font-size: 1.2rem;
  }
}
