/**
 * NXTBYTE Auth – Login, Registrierung, Eltern-Registrierung
 */
.auth-modern {
    --auth-surface: #334866;
    --auth-border: rgba(220, 230, 244, 0.38);
    --auth-text: #f1f5f9;
    --auth-muted: #d7e0ee;
    --auth-accent: #5b74d4;
    --auth-input: #3a516e;
}

body:has(.auth-modern) {
    background: #15263c;
}

.auth-modern.container-login100 {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 6rem 1rem 2.5rem;
    background-color: #15263c;
    background-image:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(67, 97, 238, 0.28), transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 110%, rgba(124, 58, 237, 0.18), transparent 50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.auth-modern .form-form {
    width: 100%;
    max-width: 480px;
    min-height: auto;
    margin: 0 auto;
}

.auth-modern.auth-modern--wide .form-form {
    max-width: 880px;
}

.auth-modern .form-form-wrap {
    max-width: none !important;
    min-width: 0;
    min-height: 0 !important;
    height: auto !important;
    width: 100%;
}

body:has(.auth-modern) .overlay:not(.show),
body:has(.auth-modern) .search-overlay:not(.show) {
    pointer-events: none;
}

.auth-modern .form-container {
    min-height: auto;
    align-items: stretch;
}

.auth-modern .form-content {
    background: var(--auth-surface) !important;
    border: 1px solid var(--auth-border);
    border-radius: 16px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35) !important;
    padding: 2rem 1.75rem 1.75rem !important;
    text-align: left !important;
}

.auth-modern .auth-logo {
    display: inline-block;
    margin-bottom: 1.15rem;
}

.auth-modern .auth-logo img {
    height: 52px;
    width: auto;
}

.auth-modern .form-content h1,
.auth-modern .form-content h1 strong {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--auth-text) !important;
    margin: 0 0 0.35rem;
}

.auth-modern .auth-sub {
    color: var(--auth-muted);
    font-size: 0.92rem;
    line-height: 1.45;
    margin: 0 0 1.35rem;
}

.auth-modern label,
.auth-modern #userForm .field-wrapper.input > label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--auth-text) !important;
    text-align: left;
}

.auth-modern .field-wrapper.input > input.form-control {
    padding-left: 42px !important;
    position: relative;
    z-index: 1;
}

.auth-modern .field-wrapper.input svg:not(.feather-eye) {
    position: absolute;
    left: 12px;
    top: auto !important;
    bottom: 29px;
    pointer-events: none;
    z-index: 0;
}

.auth-modern #password-field > .d-flex {
    position: relative;
    z-index: 2;
    align-items: center;
    width: 100%;
    gap: 0.75rem;
}

.auth-modern #password-field > .d-flex label {
    margin-bottom: 0;
}

.auth-modern #password-field .forgot-pass-link {
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 1.2;
}

.auth-modern .form-control,
.auth-modern input.field,
.auth-modern select.field,
.auth-modern #userForm .register-field-control input.field,
.auth-modern #userForm .register-field-control input.form-control,
.auth-modern #userForm .register-field-control select.field,
.auth-modern #userForm .register-field-control select.form-control {
    background: var(--auth-input) !important;
    border: 1px solid var(--auth-border) !important;
    border-radius: 10px !important;
    color: var(--auth-text) !important;
    min-height: 46px;
    font-size: 16px !important;
}

.auth-modern .form-control:focus,
.auth-modern input.field:focus,
.auth-modern select.field:focus {
    border-color: var(--auth-accent) !important;
    box-shadow: 0 0 0 0.15rem rgba(67, 97, 238, 0.22) !important;
}

.auth-modern .forgot-pass-link {
    color: #93c5fd !important;
    font-size: 13px;
    font-weight: 600;
}

.auth-modern .btn-primary {
    background: var(--auth-accent) !important;
    border-color: var(--auth-accent) !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    padding: 0.7rem 1.35rem !important;
    box-shadow: none !important;
    color: #fff !important;
}

.auth-modern .btn-danger {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    padding: 0.7rem 1.35rem !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    box-shadow: none !important;
}

.auth-modern .btn-danger:hover,
.auth-modern .btn-danger:focus,
.auth-modern .btn-danger:active {
    background: #991b1b !important;
    border-color: #991b1b !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.auth-modern .btn-outline-primary,
.auth-modern .btn-outline-secondary {
    background: #3a516e !important;
    border-color: var(--auth-border) !important;
    color: var(--auth-text) !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
}

.auth-modern .auth-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    margin-top: 1.25rem;
}

.auth-modern .auth-actions .btn,
.auth-modern .auth-actions a.btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    flex: 1 1 160px;
    text-align: center;
    text-decoration: none !important;
}

.auth-modern .text-muted {
    color: var(--auth-muted) !important;
}

.auth-modern .twofa-method-picker {
    margin-bottom: 1.25rem;
}

.auth-modern .twofa-method-picker .picker-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--auth-muted);
    margin-bottom: 10px;
    text-align: left;
}

.auth-modern .twofa-method-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-modern .twofa-method-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    cursor: pointer;
    border: 2px solid var(--auth-border);
    background: var(--auth-input);
    color: var(--auth-text);
    transition: border-color .15s, background .15s, color .15s;
}

.auth-modern .twofa-method-btn i {
    color: #93c5fd;
    font-size: 15px;
}

.auth-modern .twofa-method-btn:hover {
    border-color: var(--auth-accent);
    background: #42597a;
    color: #fff;
}

.auth-modern .twofa-method-btn.active {
    border-color: var(--auth-accent);
    background: var(--auth-accent);
    color: #fff;
    font-weight: 600;
}

.auth-modern .twofa-method-btn.active i {
    color: #fff;
}

.auth-modern .signup-link {
    color: var(--auth-muted) !important;
    font-size: 0.9rem;
    margin: 1rem 0 0;
    text-align: center;
}

.auth-modern .signup-link a {
    color: #93c5fd !important;
    font-weight: 600;
}

.auth-modern .auth-note i {
    margin-right: 0.4rem;
    color: #93c5fd;
}

.auth-modern .auth-note,
.auth-modern .auth-promo {
    background: rgba(67, 97, 238, 0.14);
    border: 1px solid rgba(67, 97, 238, 0.35);
    border-radius: 12px;
    padding: 0.95rem 1.05rem;
    text-align: left;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 1.15rem;
}

.auth-modern .auth-note strong,
.auth-modern .auth-promo strong {
    color: var(--auth-text);
}

.auth-modern .auth-legal {
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0.35rem 0 1.1rem;
}

.auth-modern .auth-legal a {
    color: #fff;
    font-weight: 700;
}

.auth-modern .new-control {
    color: var(--auth-muted);
}

.auth-modern #userForm .register-field-control svg {
    color: #94a3b8;
}

@media (max-width: 767px) {
    .auth-modern.container-login100 {
        min-height: auto;
        padding: 5.5rem 1rem 2.75rem;
        align-items: flex-start;
    }

    .auth-modern .form-form,
    .auth-modern .form-form-wrap {
        height: auto !important;
        min-height: 0 !important;
    }

    .auth-modern .auth-logo {
        display: none;
    }

    .auth-modern .form-content {
        padding: 1.4rem 1.15rem 1.25rem !important;
    }

    .auth-modern #password-field > .d-flex {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .auth-modern .btn-primary,
    .auth-modern #login {
        width: 100%;
        min-height: 48px;
    }

    .auth-modern #userForm #containerNewUserSignup .row > [class*="col-"]:not(.nxt-reg-pair) {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .auth-modern #userForm #containerNewUserSignup .row > .nxt-reg-pair {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
