/* ═══════════════════════════════════════════
   MYLS Dashboard — Auth Screens (Login / Register)
   ═══════════════════════════════════════════ */

.auth-wrapper {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* ── Left panel (hero image / background) ── */
.auth-hero {
  flex: 0 0 60%;
  background: #1E2A3B;
  position: relative;
  overflow: hidden;
}

.auth-hero img.login-img {
      width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.auth-chat-widget {
  position: absolute;
  bottom: 36px;
  left: 36px;
  display: flex;
  align-items: center;
  gap: 25px;
  z-index: 2;
}

.auth-chat-icon {
     width: 107px;
    height: 69px;
    background: var(--brand-gradient);
    color: var(--brand-on-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.auth-chat-bubble {
        background: var(--white);
    border-radius: 16px;
    padding: 10px 20px;
    font-size: 13px;
    box-shadow: var(--shadow-md);
    width: 194px;
    height: 104px;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    /* text-align: left; */
    justify-content: center;
    position: relative;
}

.auth-chat-bubble .title {
    font-weight: 700;
    font-style: Medium;
    font-size: 16px;
    line-height: 100%;
    margin-bottom: 5px;
    letter-spacing: 0%;
    

}
.auth-chat-bubble::after {
  content: "";
  position: absolute;
  left: -8px; /* Moves it to the left edge */
  top: 50%;
  transform: translateY(-50%) rotate(45deg); /* Centers and rotates */
  width: 16px;
  height: 16px;
  background-color: #ffffff; /* Must match box color */
  border-radius: 2px; /* Slightly rounds the tip of the arrow */
}
.auth-chat-bubble .sub {

font-weight: 400;
font-style: Light;
font-size: 16px;
line-height: 100%;
letter-spacing: 0%;

}

/* ── Right panel (form) ── */
.auth-form-panel {
  position: relative;
  flex: 1;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 60px;
  overflow-y: auto;
}
.auth-form-panel .lang-buttons {    position: absolute;
    right: 20px;
    top: 20px;}
.auth-form-inner {
  width: 100%;
  max-width: 320px;
}

.auth-logo {
  margin-bottom: 32px;
  text-align: center;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: bold;
  color: var(--dark);
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

.auth-footer {
      text-align: center;
    margin-top: 18px;
    font-size: 13px;
    background: var(--brand-text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 600;
}

.auth-footer a {
  color: var(--brand-primary-text);
}

.auth-divider {
  display: inline-block;
  margin: 0 6px;
  color: var(--brd);
}

/* ── Password toggle ── */
.form-group.has-icon input {
  padding-right: 40px;
}

/* ── Error state ── */
.form-error {
  font-size: 12px;
  color: #DC2626;
  margin-top: 4px;
  display: none;
}

.form-group.error input {
  border-color: #DC2626;
}

.form-group.error .form-error {
  display: block;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .auth-hero {
    display: none;
  }
  .auth-form-panel {
    padding: 32px 24px;
  }
}

/* ── Markenzeichen (BrandLogo): Logo der Agentur oder Produktname als Schriftzug (Prinzip 9a) ── */
.brand-logo {
  text-align: center;
}

.brand-logo-img {
  height: 42px;
  max-width: 200px;
  object-fit: contain;
}

.brand-product-name {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 600;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.3px;
  line-height: 1.2;
  color: var(--dark);
  word-break: break-word;
}

.brand-logo-sidebar .brand-logo-img {
  height: auto;
  max-height: 56px;
  max-width: 200px;
}

.brand-logo-sidebar .brand-product-name {
  font-size: 12px;
  margin-top: 4px;
}

.brand-logo-sidebar .brand-wordmark {
  font-size: 20px;
}

/* dunkler Hintergrund (Startseite ohne Dashboards) */
.brand-logo-hero {
  position: relative;
  z-index: 1;
  text-align: left;
}

.brand-logo-hero .brand-logo-img {
  height: 48px;
  max-width: 220px;
}

.brand-logo-hero .brand-product-name {
  font-size: 14px;
  color: color-mix(in srgb, var(--brand-on-primary) 85%, transparent);
}

.brand-logo-hero .brand-wordmark {
  font-size: 30px;
  letter-spacing: -1.2px;
  color: var(--brand-on-primary);
}

/* ── Einladung annehmen (/invitation/:token) und Passwort zuruecksetzen (/reset-password) ── */
.auth-form-inner.auth-form-wide {
  max-width: 400px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--mid);
  margin: 0 0 5px 14px;
}

.input-icon-button {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
}

.inv-summary {
  display: grid;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--brd);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
}

.inv-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.inv-label {
  color: var(--muted);
  white-space: nowrap;
}

.inv-summary strong {
  color: var(--dark);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.inv-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0 14px;
}

.inv-success {
  background: var(--brand-primary-soft);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--dark);
}

.inv-actions {
  margin-top: 18px;
}

.inv-actions a.btn-primary {
  text-decoration: none;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
