:root {
  --bv-accent: #11E44F;        /* Default-Farbe für Spring */
  --bv-accent-dark: #0aa000;   /* Default-Dunkelton */
}
/*
Anwendung:
background-color: var(--bv-accent);
color: var(--bv-accent-dark);
*/

.baumvolk-auth-page #bv-main {
    background-color: #121212;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 4rem 1rem;
}

.baumvolk-auth-wrapper {
    justify-content: center;
    align-items: center;
    width: 100%;
}

.auth-form-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 20px;
    background-color: rgba(18, 18, 18, 0.6);
    /*border: 1px solid #11E44F; border-radius: 5px; box-shadow: 0 4px 6px rgba(17, 228, 79, 0.5);*/
    border: none;
    box-shadow: none;
    max-width: 900px;
    margin: 20px auto;
}

.auth-info,
.auth-fields {
    flex: 1 1 300px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-logo {
    display: block;
    margin: 0 auto;
    width: 300px;
    height: auto;
    margin-top: 20px;
    margin-bottom: 20px;
}

.auth-message-box {
    background-color: #fff;
    color: #000;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
    max-width: 400px;
    margin: 20px auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-title {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #fff;
    text-align: center;
}

.auth-headline-container {
    display: flex;                /* statt inline-block */
    align-items: center;          /* vertikal zentrieren */
    justify-content: center;      /* horizontal zentrieren */
    
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 0 10%;               /* oben/unten raus, da Höhe fix */
    height: 40px;
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.auth-headline-container h2 {
    font-size: 12px;
    font-weight: normal;
    color: #ccc;
    margin: 0;
    text-align: center;
    display: block;
    /* kein line-height nötig, da Flex die Vertikale übernimmt */
}

.social-auth-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 10px 0 20px 0;
}

.social-auth-buttons img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.spacer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 10px 0;
}

.spacer-line {
    flex-grow: 1;
    width: 40%;
    height: 1px;
    background-color: #ccc !important;
    border: none;
}

.spacer-text {
    margin: 0 10px;
    color: #fff;
}

.auth-field {
    margin-bottom: 20px;
}

.auth-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #fff;
    text-align: left;
}

.auth-field input[type="text"],
.auth-field input[type="password"],
.auth-field input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--bv-accent);;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: transparent;
    color: #fff;
}

.auth-field input:focus {
    border-color: #fff;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    caret-color: #fff;
    outline: none;
}

/* → Ungültiges Feld im Fokus: Rahmen bleibt weiß + weißer Glow */
.auth-field input:invalid:focus {
  border-color: #fff !important;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5) !important;
  outline: none !important;
}

.auth-field.remember-me {
    display: flex;
    align-items: center;
    margin: 0;
    padding-bottom: 20px;
}

.auth-field.remember-me label {
    font-size: 14px;
    cursor: pointer;
    color: #fff;
}

.auth-field.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    background: transparent;
    border-color: var(--bv-accent);;
}

.auth-field input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: var(--bv-accent);;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.auth-field input[type="submit"]:hover {
    background-color: var(--bv-accent-dark);
}

.auth-field input[type="submit"]:active,
.auth-field input[type="submit"]:focus {
    background-color: var(--bv-accent);;
    box-shadow: none;
    color: #fff;
    transform: none;
}

/*code eingabe*/

.code-boxes {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    text-align: center;
    margin: 1rem 0;
    border: 1px solid var(--bv-accent);;
    background-color: #1e1e1e;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1.8rem;
}

.code-input {
    width: 3rem !important;
    height: 3rem !important;
    padding: 0 10px !important;
    text-align: center;
    border: none !important;
    background-color: none !important;
    border-radius: none !important;
    box-shadow: none !important;
}

/* ==========================
   FANCY-SEPARATOR (Nadel)
   ========================== */

.fancy-separator {
  position: relative;
  width: 100%;
  max-width: 900px;          /* maximale Breite */
  height: 24px;              /* passt zur Rune (Font-Size) */
  margin: 2rem auto;         /* 2rem Abstand oben/unten, und zentriert */
  background: transparent;   /* Hintergrund durchscheinend */
}

/* === 1) Die eigentliche „Nadel“-Linie (2px hoch, spitz an den Enden) === */
.fancy-separator .line {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 2px;                          /* Dicke der Linie */
  background-color: var(--bv-accent);;            /* klassisches Baumvolk-Grün :contentReference[oaicite:1]{index=1} */
  clip-path: polygon(
    0%   50%,   /* Startpunkt links Mitte */
    10%  0%,    /* 10% von links: oben */
    90%  0%,    /* 90% von links: oben */
    100% 50%,   /* Ende rechts Mitte */
    90%  100%,  /* 90% von links: unten */
    10%  100%   /* 10% von links: unten */
  );
}

/* === 2) Rune‐Icon zentrieren === */
.fancy-separator .rune-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;         /* gleiche Grün‐Farbe für die Rune :contentReference[oaicite:2]{index=2} */
  font-size: 24px;        /* Höhe der Rune (kann bei Bedarf angepasst werden) */
  line-height: 1;
  background: #121212;/* Hintergrund transparent, sodass keine Maske nötig ist */
  user-select: none;      /* verhindert ungewolltes Markieren */
  padding: 0px 15px;
}

/* Optional: leichter Hover‐Effekt für die Rune */
.fancy-separator .rune-icon:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

/*register change password eingabefelder*/
.auth-field .info_and_toggle {
    position: relative;
}

.auth-field .info_and_toggle input {
    padding-right: 80px; /* Platz für den Toggle-Button rechts */
}

.auth-field .toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    padding: 6px 10px;
    font-size: 12px;
    background: transparent;
    border: none;
    color: var(--bv-accent);;
    border-radius: 0;
    cursor: pointer;
}

.auth-field .toggle-password:hover {
    background-color: rgba(17, 228, 79, 0.1);
}

.auth-field .toggle-password:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(17, 228, 79, 0.3);
}

/*generate pw button*/
.auth-field.generate-pw {
    text-align: right;
}

#generate-pw-button {
    padding: 6px 10px;
    font-size: 12px;
    background: transparent;
    border: none;
    color: var(--bv-accent);;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

#generate-pw-button:hover {
    background-color: rgba(17, 228, 79, 0.1);
}

#generate-pw-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(17, 228, 79, 0.3);
}

/*Slider*/
/* 1) Slider auf 100% Breite und Fill‐Farbe #11e44f */
#slider_verify {
  width: 100%;
  accent-color: var(--bv-accent);;
}

#slider_verify:active,
#slider_verify:focus {
  border: none;
  box-shadow: none;
}

/* 1) Zentriere den Text in #slider-message */
#slider-message {
  text-align: center;
  font-size: 1.2rem; /* macht die gesamte Nachricht (inkl. Pfeil) etwas größer */
  color: #fff;       /* sicherstellen, dass der Text weiß bleibt */
  padding-top: 0;
  margin-top: -5px !important;
}

#error-message {
    color: red;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}

.auth-back-section {
    color: #fff;
    padding-top: 10px;
    text-align: center;
}

.auth-back-section p {
    margin: 0;
}

.auth-back-link {
    color: var(--bv-accent);;
    text-decoration: underline !important;
}

.auth-back-link:hover {
    color: var(--bv-accent-dark);
}

@media screen and (max-width: 1024px) {
    .auth-form-wrapper {
        flex-direction: column;
        align-items: center;
        padding: 20px 40px;
    }

    .auth-info,
    .auth-fields {
        width: 100%;
        min-width: unset;
    }

    .auth-logo {
        width: 250px;
    }

    .auth-message-box {
        max-width: 90%;
    }
}

@media screen and (max-width: 600px) {
    .auth-title {
        font-size: 24px;
    }

    .auth-logo {
        width: 200px;
    }

    .auth-headline-container {
        padding: 5px 5%;
        height: auto;
    }

    .auth-headline-container h2 span {
        font-size: 11px;
    }

    .social-auth-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .social-auth-buttons img {
        width: 36px;
        height: 36px;
    }

    .spacer-container {
        flex-direction: column;
    }

    .spacer-line {
        width: 60%;
    }

    .auth-field input {
        font-size: 15px;
        padding: 9px;
    }

    .auth-field input[type="submit"] {
        font-size: 15px;
        padding: 10px;
    }

    .auth-back-section {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .baumvolk-auth-page #bv-main {
        padding-top: 0;
        padding: 4rem 3rem;
    }

    .auth-form-wrapper {
        padding: 10px 0 0 0;
        max-width: 100%;
        margin-top: 0;
    }
}


/*mobile register*/
@media screen and (max-width: 1024px) {
    .auth-form-wrapper {
        flex-direction: column;
        align-items: center;
        padding: 20px 40px;
    }

    .auth-info,
    .auth-fields {
        width: 100%;
        min-width: unset;
    }

    .auth-logo {
        width: 250px;
        margin-top: 0;
        margin-bottom: 0;
    }

    .auth-message-box {
        max-width: 90%;
    }
}

@media screen and (max-width: 600px) {
  /* Ab 600px-Breite (Mobile) kein vertical centering mehr */
  .baumvolk-auth-page #bv-main {
    display: flex;
    flex-direction: column;    /* Inhalt von oben nach unten stapeln */
    justify-content: flex-start; /* immer am oberen Rand anfangen */
    align-items: center;       /* bleibt horizontal zentriert */
    min-height: auto;          /* nicht mehr 100vh, steigt je nach Inhalt */
    padding: 2rem 1rem;        /* falls du weniger Padding oben willst */
  }

  .auth-info {
    flex: 1 1 200px;
    }
}

@media screen and (max-width: 480px) {
    .baumvolk-auth-page #bv-main {
        padding-top: 0;
        padding: 2rem 1rem; /* engeres Padding, um Platz zu sparen */
    }

    .auth-form-wrapper {
        padding: 10px 40px; /* generell genug Abstand nach oben, damit nichts überlappt */
        max-width: 100%;
        margin-top: 0;
    }

    /* Wenn nötig, die Höhe des Logos weiter verkleinern */
    .auth-logo {
        width: 180px;
    }
}