/* BlueDeskBR auth screens: login and company selection. */
:root {
  --auth-sidebar-dark: #1d3558;
  --auth-sidebar-darker: #111f34;
  --auth-blue: #0c6fb8;
  --auth-blue-hover: #095f9f;
  --auth-border: rgba(148, 163, 184, 0.24);
  --auth-text: #172033;
  --auth-muted: #64748b;
}

html,
body.auth-modern-page {
  min-height: 100%;
}

body.auth-modern-page {
  margin: 0;
  background:
    radial-gradient(circle at 16% 14%, rgba(12, 111, 184, 0.22), transparent 30%),
    linear-gradient(135deg, var(--auth-sidebar-darker) 0%, var(--auth-sidebar-dark) 52%, #0f1a2b 100%);
  color: var(--auth-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.auth-navbar {
  min-height: 72px;
  padding: 0.85rem 1.5rem;
  background: rgba(17, 31, 52, 0.82) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 46px rgba(2, 6, 23, 0.24);
  backdrop-filter: blur(14px);
}

.auth-navbar .navbar-brand {
  color: #ffffff !important;
  letter-spacing: 0.01em;
}

.auth-brand-logo {
  width: 220px;
  height: auto !important;
  max-height: 52px;
  object-fit: contain;
}

.auth-navbar .auth-subtitle,
.auth-navbar .auth-subtitle.navbar-text,
.auth-navbar .auth-subtitle.h5 {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  line-height: 1.25;
}

.auth-lang-select {
  min-width: 132px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.95);
  color: #172033;
  font-weight: 600;
}

.auth-main {
  min-height: calc(100vh - 142px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.auth-panel {
  width: min(100%, 480px);
  padding: 2rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  box-shadow: 0 26px 70px rgba(2, 6, 23, 0.28);
}

.auth-company-panel {
  width: min(100%, 560px);
}

.auth-panel-header {
  margin-bottom: 1.45rem;
}

.auth-panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  color: var(--auth-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-panel h1 {
  margin: 0;
  color: #172033;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
}

.auth-panel p {
  color: var(--auth-muted);
}

.auth-message-stack {
  margin-bottom: 1rem;
}

.auth-message-stack label {
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.auth-form .form-group {
  margin-bottom: 1rem;
}

.auth-form label {
  color: #243149;
  font-size: 0.86rem;
  font-weight: 700;
}

.auth-form .form-control,
.auth-form .custom-select {
  min-height: 44px;
  border: 1px solid #d7dee8;
  border-radius: 9px;
  color: #172033;
  background-color: #f8fafc;
  box-shadow: none;
}

.auth-form .form-control:focus,
.auth-form .custom-select:focus {
  border-color: rgba(12, 111, 184, 0.55);
  background-color: #ffffff;
  box-shadow: 0 0 0 0.18rem rgba(12, 111, 184, 0.14);
}

.auth-primary-btn {
  min-height: 46px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #0c6fb8 0%, #1d3558 100%);
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(12, 111, 184, 0.25);
}

.auth-primary-btn:hover,
.auth-primary-btn:focus {
  background: linear-gradient(135deg, var(--auth-blue-hover) 0%, #162945 100%);
  color: #ffffff !important;
  box-shadow: 0 14px 28px rgba(12, 111, 184, 0.32);
}

.auth-link-btn {
  color: var(--auth-blue);
  font-weight: 700;
  text-decoration: none;
}

.auth-link-btn:hover,
.auth-link-btn:focus {
  color: var(--auth-blue-hover);
  text-decoration: none;
}

.auth-footer {
  padding: 1rem;
  color: rgba(255, 255, 255, 0.62);
}

.auth-footer a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.auth-footer a:hover,
.auth-footer a:focus {
  color: #ffffff;
  text-decoration: none;
}

.password-wrapper {
  position: relative;
}

.password-wrapper .form-control {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 0;
  color: #64748b;
  cursor: pointer;
}

.password-toggle:focus {
  outline: none;
}

@media (max-width: 575.98px) {
  .auth-navbar {
    padding: 0.75rem 1rem;
  }

  .auth-brand-logo {
    width: 176px;
  }

  .auth-navbar .auth-subtitle,
  .auth-navbar .auth-subtitle.navbar-text,
  .auth-navbar .auth-subtitle.h5 {
    margin: 0.75rem 0;
    text-align: left;
    font-size: 1.12rem !important;
  }

  .auth-main {
    align-items: flex-start;
    min-height: auto;
    padding: 1.5rem 0.85rem;
  }

  .auth-panel {
    padding: 1.35rem;
    border-radius: 14px;
  }
}
