/* ============================================
   public/assets/css/login.css
   Styles für die Auth-Seiten (Login, Register,
   Passwort vergessen, Passwort zurücksetzen).
   Eigenständig — kann unabhängig von der App
   geändert werden.
   ============================================ */

/* --------------------------------------------
   Container: zentriert die Box vertikal + horizontal
   -------------------------------------------- */
.auth-container {
    min-height: calc(100vh - 160px);   /* Abstand für Footer */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* --------------------------------------------
   Box: die Karte mit dem Formular
   -------------------------------------------- */
.auth-box {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    padding: 40px 36px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

/* --------------------------------------------
   Logo (über dem Titel)
   -------------------------------------------- */
.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}
.auth-logo img {
    max-width: 200px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: inline-block;
}

/* --------------------------------------------
   Titel
   -------------------------------------------- */
.auth-box h1 {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    color: #212529;
}

/* --------------------------------------------
   Formular
   -------------------------------------------- */
.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: #212529;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 6px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-form input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.auth-form .form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6c757d;
}

/* Checkbox-Zeile */
.auth-form .form-group.checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.auth-form .form-group.checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 400;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
}
.auth-form .form-group.checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}

/* Submit-Button: volle Breite in der Box */
.auth-form .btn-block {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
}

/* --------------------------------------------
   Links (Passwort vergessen / Registrieren)
   -------------------------------------------- */
.auth-links {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}
.auth-links a {
    color: #007bff;
    text-decoration: none;
}
.auth-links a:hover {
    text-decoration: underline;
}

/* --------------------------------------------
   Alerts innerhalb der Box
   -------------------------------------------- */
.auth-box .alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14px;
}
.auth-box .alert p { margin: 0; }
.auth-box .alert p + p { margin-top: 6px; }
.auth-box .alert ul { margin: 0; padding-left: 20px; }

/* --------------------------------------------
   Responsive
   -------------------------------------------- */
@media (max-width: 480px) {
    .auth-container {
        padding: 20px 12px;
        min-height: calc(100vh - 120px);
    }
    .auth-box {
        padding: 28px 22px;
        border-radius: 8px;
    }
    .auth-box h1 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    .auth-logo img {
        max-width: 160px;
    }
    .auth-links {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}